| Revision 1932,
896 bytes
checked in by philmoz, 11 months ago
(diff) |
|
Fix edge overlay state display (broken when edge overlay converted to module).
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef EDGE_OVERLAY_H |
|---|
| 2 | #define EDGE_OVERLAY_H |
|---|
| 3 | |
|---|
| 4 | // steps for up/down/left/right moving the overlay in ALT mode |
|---|
| 5 | #define XINC 6 |
|---|
| 6 | #define YINC 2 |
|---|
| 7 | |
|---|
| 8 | // if you change this, remember to change the mkdir in main too |
|---|
| 9 | #define EDGE_SAVE_DIR "A/CHDK/EDGE" |
|---|
| 10 | |
|---|
| 11 | struct libedgeovr_sym { |
|---|
| 12 | int version; |
|---|
| 13 | void (*edge_overlay)(); |
|---|
| 14 | void (*load_edge_overlay)(const char* fn); |
|---|
| 15 | void (*save_edge_overlay)(void); |
|---|
| 16 | }; |
|---|
| 17 | |
|---|
| 18 | // Defines of exported to chdk symbols |
|---|
| 19 | #ifdef THIS_IS_CHDK_CORE |
|---|
| 20 | // This section is for CHDK core |
|---|
| 21 | extern struct libedgeovr_sym* libedgeovr; |
|---|
| 22 | extern struct libedgeovr_sym* module_edgeovr_load(); // 0fail, addr-ok |
|---|
| 23 | #else |
|---|
| 24 | // This section is for module |
|---|
| 25 | extern void edge_overlay(); |
|---|
| 26 | extern void load_edge_overlay(const char* fn); |
|---|
| 27 | extern void save_edge_overlay(void); |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | extern void module_restore_edge(void **buf, int *state); |
|---|
| 31 | extern void module_save_edge(void* buf, int state); |
|---|
| 32 | |
|---|
| 33 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.