Rev 9597 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9597 | Rev 9602 | ||
---|---|---|---|
Line 366... | Line 366... | ||
366 | key.init(40); |
366 | key.init(40); |
Line 367... | Line 367... | ||
367 | 367 | ||
368 | right_bar.x = Form.cwidth - right_bar.w; |
368 | right_bar.x = Form.cwidth - right_bar.w; |
369 | b_color_gradient.x = b_last_colors.x = b_default_palette.x = right_bar.x; |
369 | b_color_gradient.x = b_last_colors.x = b_default_palette.x = right_bar.x; |
370 | DrawBar(0, 0, Form.cwidth, TOPBAR_H-1, sc.work); |
370 | DrawBar(0, 0, Form.cwidth, TOPBAR_H-1, sc.work); |
Line 371... | Line 371... | ||
371 | DrawBar(0, TOPBAR_H-1, Form.cwidth, 1, sc.work_graph); |
371 | DrawBar(0, TOPBAR_H-1, Form.cwidth, 1, sc.line); |
372 | 372 | ||
373 | DrawTopPanelButton1(#EventCreateNewIcon, ECTRL + SCAN_CODE_KEY_N, tx.set(7), 2); |
373 | DrawTopPanelButton1(#EventCreateNewIcon, ECTRL + SCAN_CODE_KEY_N, tx.set(7), 2); |
374 | DrawTopPanelButton1(#EventOpenIcon, ECTRL + SCAN_CODE_KEY_O, tx.inc(GAP_S), 0); |
374 | DrawTopPanelButton1(#EventOpenIcon, ECTRL + SCAN_CODE_KEY_O, tx.inc(GAP_S), 0); |
Line 448... | Line 448... | ||
448 | //} |
448 | //} |
Line 449... | Line 449... | ||
449 | 449 | ||
450 | left_side = canvas.x-wrapper.x-1; |
450 | left_side = canvas.x-wrapper.x-1; |
Line 451... | Line 451... | ||
451 | top_side = canvas.y-wrapper.y-1; |
451 | top_side = canvas.y-wrapper.y-1; |
Line 452... | Line 452... | ||
452 | 452 | ||
453 | DrawRectangle(wrapper.x-1, wrapper.y-1, wrapper.w, wrapper.h, sc.work_graph); |
453 | DrawRectangle(wrapper.x-1, wrapper.y-1, wrapper.w, wrapper.h, sc.line); |
454 | 454 | ||
455 | if (left_side>0) |
455 | if (left_side>0) |
Line 587... | Line 587... | ||
587 | int preview_h = Form.cheight - y; |
587 | int preview_h = Form.cheight - y; |
Line 588... | Line 588... | ||
588 | 588 | ||
589 | if (image.columns > right_bar.w) return; |
589 | if (image.columns > right_bar.w) return; |
Line 590... | Line 590... | ||
590 | if (image.rows > preview_h) return; |
590 | if (image.rows > preview_h) return; |
591 | 591 | ||
592 | _PutImage(right_bar.w - image.columns / 2 + x - 3, |
592 | PutImage(right_bar.w - image.columns / 2 + x - 3, |
593 | preview_h - image.rows / 2 + y, |
593 | preview_h - image.rows / 2 + y, |
594 | image.columns, image.rows, image.get_image() |
594 | image.columns, image.rows, image.get_image() |
Line 604... | Line 604... | ||
604 | void DrawImageWithBg(dword _x, _y, _col_to) |
604 | void DrawImageWithBg(dword _x, _y, _col_to) |
605 | { |
605 | { |
606 | _x *= preview_size; |
606 | _x *= preview_size; |
607 | _y *= preview_size; |
607 | _y *= preview_size; |
608 | DrawWideRectangle(_x,_y, preview_size, preview_size, preview_size-image.columns/2, _col_to); |
608 | DrawWideRectangle(_x,_y, preview_size, preview_size, preview_size-image.columns/2, _col_to); |
609 | _PutImage(preview_size - image.columns / 2 + _x, preview_size - image.rows / 2 + _y, |
609 | PutImage(preview_size - image.columns / 2 + _x, preview_size - image.rows / 2 + _y, |
610 | image.columns, image.rows, image.get_image_with_replaced_color(color2, _col_to)); |
610 | image.columns, image.rows, image.get_image_with_replaced_color(color2, _col_to)); |
611 | } |
611 | } |
Line 612... | Line 612... | ||
612 | 612 | ||
613 | void ShowWindow_TestIcon() |
613 | void ShowWindow_TestIcon() |