diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/doom/i_video.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c index a4734502b5..a897166b22 100644 --- a/apps/plugins/doom/i_video.c +++ b/apps/plugins/doom/i_video.c | |||
@@ -16,7 +16,10 @@ | |||
16 | * GNU General Public License for more details. | 16 | * GNU General Public License for more details. |
17 | * | 17 | * |
18 | * $Log$ | 18 | * $Log$ |
19 | * Revision 1.22 2006/08/07 02:44:18 amiconn | 19 | * Revision 1.23 2006/08/10 18:34:43 amiconn |
20 | * Correct calculation of necessary buffer size to give maximum number of shades on iPod Mini. | ||
21 | * | ||
22 | * Revision 1.22 2006-08-07 02:44:18 amiconn | ||
20 | * Use striped buffering for grayscale targets to make the buffer fit on iPod g3/g4. Also slightly faster (at least on H1x0) with the buffer in IRAM. | 23 | * Use striped buffering for grayscale targets to make the buffer fit on iPod g3/g4. Also slightly faster (at least on H1x0) with the buffer in IRAM. |
21 | * | 24 | * |
22 | * Revision 1.21 2006-08-07 01:57:29 amiconn | 25 | * Revision 1.21 2006-08-07 01:57:29 amiconn |
@@ -108,7 +111,11 @@ | |||
108 | #include "../lib/gray.h" | 111 | #include "../lib/gray.h" |
109 | static unsigned char graybuffer[8*LCD_WIDTH] IBSS_ATTR; /* off screen buffer */ | 112 | static unsigned char graybuffer[8*LCD_WIDTH] IBSS_ATTR; /* off screen buffer */ |
110 | static unsigned char *gbuf; | 113 | static unsigned char *gbuf; |
111 | #define GRAYBUFSIZE (LCD_WIDTH*LCD_HEIGHT*4+200) | 114 | #if LCD_PIXELFORMAT == HORIZONTAL_PACKING |
115 | #define GRAYBUFSIZE (((LCD_WIDTH+7)/8)*LCD_HEIGHT*32+200) | ||
116 | #else | ||
117 | #define GRAYBUFSIZE (LCD_WIDTH*((LCD_HEIGHT+7)/8)*32+200) | ||
118 | #endif | ||
112 | #endif | 119 | #endif |
113 | 120 | ||
114 | #if defined(CPU_COLDFIRE) | 121 | #if defined(CPU_COLDFIRE) |