Rev 9633 | Rev 9635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9633 | Rev 9634 | ||
---|---|---|---|
Line 229... | Line 229... | ||
229 | int w = TOOLBAR_W; |
229 | int w = TOOLBAR_W; |
230 | dword img_ptr = icons18.image; |
230 | dword img_ptr = icons18.image; |
231 | if (!_text) w = PAD + PAD + 6; |
231 | if (!_text) w = PAD + PAD + 6; |
232 | if (_icon_n==-1) w = strlen(_text) * 8 + 14; |
232 | if (_icon_n==-1) w = strlen(_text) * 8 + 14; |
233 | if (_active==-1) { |
233 | if (_active==-1) { |
234 | EDX = COL_LINE; |
- | |
235 | $push COL_LIGHT |
234 | $push COL_LIGHT |
- | 235 | EDX = COL_LINE; |
|
236 | } else if (_active) { |
236 | } else if (_active) { |
237 | img_ptr = icons18a.image; |
237 | img_ptr = icons18a.image; |
238 | EDX = COL_BUTTON; |
- | |
239 | $push COL_BUTTON_TEXT |
238 | $push COL_BUTTON_TEXT |
- | 239 | EDX = COL_BUTTON; |
|
Line 240... | Line 240... | ||
240 | 240 | ||
241 | } else { |
241 | } else { |
242 | $push COL_WORK_TEXT |
242 | $push COL_WORK_TEXT |
243 | EDX = COL_LIGHT; |
243 | EDX = COL_LIGHT; |
Line 300... | Line 300... | ||
300 | scroll_h.position = 0; |
300 | scroll_h.position = 0; |
301 | } |
301 | } |
Line 302... | Line 302... | ||
302 | 302 | ||
303 | int color_depth_id; |
303 | int color_depth_id; |
304 | void event_set_color_depth() { |
- | |
305 | //debugval("buttonid", pressed_button_id); |
- | |
306 | //debugln(libimg_bpp[pressed_button_id-color_depth_id]); |
304 | void event_set_color_depth() { |
307 | img_convert stdcall(main_image.image, 0, pressed_button_id-color_depth_id, 0, 0); |
305 | img_convert stdcall(main_image.image, 0, pressed_button_id-color_depth_id, 0, 0); |
308 | if (!EAX) { |
306 | if (!EAX) { |
309 | notify("'ImageEdit Pro\nConvertation error' -Et"); |
307 | notify("'ImageEdit Pro\nConvertation error' -Et"); |
310 | } else { |
308 | } else { |