diff options
Diffstat (limited to 'apps/plugins/doom/rockdoom.c')
-rw-r--r-- | apps/plugins/doom/rockdoom.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index 1810acdff5..bc433e7f1d 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c | |||
@@ -105,6 +105,8 @@ int my_close(int id) | |||
105 | struct plugin_api* rb; | 105 | struct plugin_api* rb; |
106 | #define MAXARGVS 100 | 106 | #define MAXARGVS 100 |
107 | 107 | ||
108 | bool noprintf=0; // Variable disables printf lcd updates to protect grayscale lib/direct lcd updates | ||
109 | |||
108 | // Here is a hacked up printf command to get the output from the game. | 110 | // Here is a hacked up printf command to get the output from the game. |
109 | int printf(const char *fmt, ...) | 111 | int printf(const char *fmt, ...) |
110 | { | 112 | { |
@@ -118,13 +120,15 @@ int printf(const char *fmt, ...) | |||
118 | va_end(ap); | 120 | va_end(ap); |
119 | 121 | ||
120 | rb->lcd_putsxy(1,p_xtpt, (unsigned char *)p_buf); | 122 | rb->lcd_putsxy(1,p_xtpt, (unsigned char *)p_buf); |
121 | rb->lcd_update(); | 123 | if (!noprintf) |
124 | rb->lcd_update(); | ||
122 | 125 | ||
123 | p_xtpt+=8; | 126 | p_xtpt+=8; |
124 | if(p_xtpt>LCD_HEIGHT-8) | 127 | if(p_xtpt>LCD_HEIGHT-8) |
125 | { | 128 | { |
126 | p_xtpt=0; | 129 | p_xtpt=0; |
127 | rb->lcd_clear_display(); | 130 | if (!noprintf) |
131 | rb->lcd_clear_display(); | ||
128 | } | 132 | } |
129 | return 1; | 133 | return 1; |
130 | } | 134 | } |