Rev 7207 | Rev 7229 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7207 | Rev 7227 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #define PAL_ITEMS_X_COUNT 13 |
38 | #define PAL_ITEMS_X_COUNT 13 |
39 | #define COLSIZE 18 |
39 | #define COLSIZE 18 |
Line 40... | Line -... | ||
40 | #define RIGHT_BAR_W PAL_ITEMS_X_COUNT*COLSIZE |
- | |
41 | - | ||
42 | struct block { |
- | |
43 | int x,y,w,h; |
- | |
44 | bool hovered(); |
- | |
45 | }; |
- | |
46 | - | ||
47 | bool block::hovered() { |
- | |
48 | if ((mouse.x>x) && (mouse.y>y) |
- | |
49 | && (mouse.y |
- | |
50 | return true; |
- | |
51 | return false; |
- | |
52 | } |
40 | #define RIGHT_BAR_W PAL_ITEMS_X_COUNT*COLSIZE |
53 | 41 | ||
54 | block canvas = { NULL, NULL, NULL, NULL }; |
42 | block canvas = { NULL, NULL, NULL, NULL }; |
Line 55... | Line 43... | ||
55 | block wrapper = { PANEL_LEFT_W, TOOLBAR_H, NULL, NULL }; |
43 | block wrapper = { PANEL_LEFT_W, TOOLBAR_H, NULL, NULL }; |
Line 726... | Line 714... | ||
726 | 714 | ||
727 | if(encoded_data == 0) { |
715 | if(encoded_data == 0) { |
728 | notify("'Error saving file, incorrect data!' -E"); |
716 | notify("'Error saving file, incorrect data!' -E"); |
729 | } |
717 | } |
730 | else { |
718 | else { |
731 | if (WriteFile(encoded_size, encoded_data, "/rd/1/saved_image.png") == 0) { |
719 | if (CreateFile(encoded_size, encoded_data, "/rd/1/saved_image.png") == 0) { |
732 | notify("'File saved as /rd/1/saved_image.png' -O"); |
720 | notify("'File saved as /rd/1/saved_image.png' -O"); |
733 | } |
721 | } |
734 | else { |
722 | else { |
735 | notify("'Error saving file, probably not enought space on ramdisk!' -E"); |
723 | notify("'Error saving file, probably not enought space on ramdisk!' -E"); |