From b31ece4fbdddaecb9b50fa02a4b224ce1d6e9ae4 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 14 Jan 2022 08:48:57 +0000 Subject: [PATCH] small refactoring git-svn-id: svn://kolibrios.org@9634 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/imgedit/imgedit.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/programs/cmm/imgedit/imgedit.c b/programs/cmm/imgedit/imgedit.c index 1935584cb5..5e155ff5c2 100644 --- a/programs/cmm/imgedit/imgedit.c +++ b/programs/cmm/imgedit/imgedit.c @@ -231,12 +231,12 @@ int draw_tool_btn(dword _event, _hotkey, _x, _y, _icon_n, _text, _active) if (!_text) w = PAD + PAD + 6; if (_icon_n==-1) w = strlen(_text) * 8 + 14; if (_active==-1) { - EDX = COL_LINE; $push COL_LIGHT + EDX = COL_LINE; } else if (_active) { img_ptr = icons18a.image; - EDX = COL_BUTTON; $push COL_BUTTON_TEXT + EDX = COL_BUTTON; } else { $push COL_WORK_TEXT @@ -302,16 +302,14 @@ void open_image(char* _path) int color_depth_id; void event_set_color_depth() { - //debugval("buttonid", pressed_button_id); - //debugln(libimg_bpp[pressed_button_id-color_depth_id]); img_convert stdcall(main_image.image, 0, pressed_button_id-color_depth_id, 0, 0); if (!EAX) { notify("'ImageEdit Pro\nConvertation error' -Et"); } else { $push eax - img_destroy stdcall(main_image.image); - $pop eax - main_image.image = EAX; + img_destroy stdcall(main_image.image); + $pop eax + main_image.image = EAX; main_image.set_vars(); draw_acive_panel(); draw_status_bar();