Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9596 → Rev 9597

/programs/cmm/iconedit/canvas_resize.h
53,7 → 53,7
break;
 
case evReDraw:
DefineAndDrawWindow(Form.left+canvas.x + 100, Form.top+skin_height+canvas.y+40,
DefineAndDrawWindow(Form.left+canvas.x + 100, Form.top+skin_h+canvas.y+40,
200, 170, 0x34, sc.work, "Canvas", 0);
WriteText(20, 20, 0x90, sc.work_text, "Width");
WriteText(20, 60, 0x90, sc.work_text, "Height");
/programs/cmm/iconedit/iconedit.c
597,7 → 597,7
 
dword GetPixelUnderMouse()
{
return GetPixelColorFromScreen(mouse.x + Form.left + 5, mouse.y + Form.top + skin_height);
return GetPixelColorFromScreen(mouse.x + Form.left + 5, mouse.y + Form.top + skin_h);
}
 
int preview_size = 128;
629,7 → 629,7
case evReDraw:
DefineAndDrawWindow(Form.left+100, Form.top+100, preview_size*2+9,
preview_size*2+skin_height+4, 0x74, NULL, T_TEST_ICON, 0);
preview_size*2+skin_h+4, 0x74, NULL, T_TEST_ICON, 0);
DrawImageWithBg(0, 0, 0x000000);
DrawImageWithBg(1, 0, 0xFFFfff);
DrawImageWithBg(0, 1, GetPixelColorFromScreen(0, 0));
/programs/cmm/iconedit/tools/screen_copy.h
10,12 → 10,12
int x, y;
 
x = mouse.x + Form.left + 5 - calc(image.columns/2);
y = mouse.y + Form.top + skin_height - calc(image.rows/2);
y = mouse.y + Form.top + skin_h - calc(image.rows/2);
 
CopyScreen(
screen_copy,
math.in(x, 0, screen.width - image.columns),
math.in(y, 0, screen.height - image.rows),
math.in(x, 0, screen.w - image.columns),
math.in(y, 0, screen.h - image.rows),
image.columns,
image.rows
);