summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld/sys.h
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2016-11-03 22:27:01 -0400
committerGerrit Rockbox <gerrit@rockbox.org>2016-11-19 19:17:14 +0100
commit05733649bce2623acfad7b163501c6fdefea985a (patch)
tree8db235af25ae7e72f9793879bd1119db90990cf4 /apps/plugins/xworld/sys.h
parentdeaeb73912c1bb9fd4d3498e59d1789761f3e322 (diff)
downloadrockbox-05733649bce2623acfad7b163501c6fdefea985a.zip
rockbox-05733649bce2623acfad7b163501c6fdefea985a.tar.gz
rockbox-05733649bce2623acfad7b163501c6fdefea985a.tar.bz2
rockbox-05733649bce2623acfad7b163501c6fdefea985a.tar.xz
XWorld: some fixes
Fixes sound on most platforms, original root cause was bad menu code as well as DMA callbacks taking too long. Worked around with smaller chunk sizes. Permanent fix would include moving mixing out of the callback. Rewrites input with code from rockboy/doom. Cherry-picks a change from Gregory Montoir's `rawgl' to patch the code wheel screen. Finally, adds a motion blur filter on select targets. Change-Id: I8df549c923c5075800c6625c36c8202e53de1d27
Diffstat (limited to 'apps/plugins/xworld/sys.h')
-rw-r--r--apps/plugins/xworld/sys.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/plugins/xworld/sys.h b/apps/plugins/xworld/sys.h
index f1920ac..20c6e85 100644
--- a/apps/plugins/xworld/sys.h
+++ b/apps/plugins/xworld/sys.h
@@ -23,12 +23,20 @@
#ifndef __XWORLD_SYS_H__
#define __XWORLD_SYS_H__
+#include "plugin.h"
#include "intern.h"
-#define SYS_NEGATIVE_COLOR
+#if (PLUGIN_BUFFER_SIZE >= 0x80000 && defined(HAVE_LCD_COLOR) && LCD_DEPTH < 24)
+#define SYS_MOTION_BLUR
+/* must be odd */
+#define BLUR_FRAMES 3
+#else
+#error lol
+#endif
+
#define NUM_COLORS 16
#define MAX_MUTEXES 16
-#define SETTINGS_FILE "settings.xfg"
+#define SETTINGS_FILE "settings.zfg" /* change when backwards-compatibility is broken */
#define CODE_X 80
#define CODE_Y 36
@@ -103,6 +111,7 @@ struct System {
bool sound_enabled;
int sound_bufsize;
bool zoom;
+ bool blur;
} settings;
};