diff options
| author | Teruaki Kawashima <teru@rockbox.org> | 2010-10-05 13:17:02 +0000 |
|---|---|---|
| committer | Teruaki Kawashima <teru@rockbox.org> | 2010-10-05 13:17:02 +0000 |
| commit | 85f1df1b1ac4571ac81b505d10bce8ad4e19ec5b (patch) | |
| tree | fb5cea5bef220d972f9a489d80c2627cca9a9dd4 /apps/plugins/imageviewer/imageviewer.h | |
| parent | d402abe3f8b2148aa23c1e5bb4d25991984a0798 (diff) | |
| download | rockbox-85f1df1b1ac4571ac81b505d10bce8ad4e19ec5b.zip rockbox-85f1df1b1ac4571ac81b505d10bce8ad4e19ec5b.tar.gz rockbox-85f1df1b1ac4571ac81b505d10bce8ad4e19ec5b.tar.bz2 rockbox-85f1df1b1ac4571ac81b505d10bce8ad4e19ec5b.tar.xz | |
fix crash after unplugging USB while in image viewer plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28211 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.h')
| -rw-r--r-- | apps/plugins/imageviewer/imageviewer.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.h b/apps/plugins/imageviewer/imageviewer.h index 79ac5ed..6c137cc 100644 --- a/apps/plugins/imageviewer/imageviewer.h +++ b/apps/plugins/imageviewer/imageviewer.h @@ -382,9 +382,14 @@ #define MIN_MEM 120000 /* State code for output with return. */ -#define PLUGIN_OTHER 10 -#define PLUGIN_ABORT 11 -#define PLUGIN_OUTOFMEM 12 +enum { + PLUGIN_OTHER = 0x200, + PLUGIN_ABORT, + PLUGIN_OUTOFMEM, + + ZOOM_IN, + ZOOM_OUT, +}; #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(HAVE_DISK_STORAGE) #define DISK_SPINDOWN |