summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/v_video.h
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-04-03 08:51:08 +0000
committerHristo Kovachev <bger@rockbox.org>2006-04-03 08:51:08 +0000
commit38deb8f13a9896f2d6eb884c6a8bbc9b10001255 (patch)
tree6e0b2629bec1f6ebd83671230652da304dcf0ff8 /apps/plugins/doom/v_video.h
parentdefbc69b2b2a576d06e718deef73aa41b5376390 (diff)
downloadrockbox-38deb8f13a9896f2d6eb884c6a8bbc9b10001255.tar.gz
rockbox-38deb8f13a9896f2d6eb884c6a8bbc9b10001255.zip
Patch #4864 by Jonathan Gordon: text editor plugin, with some changes by me.
Also correct a var clash between the rockbox's gui api and doom plugin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/v_video.h')
-rw-r--r--apps/plugins/doom/v_video.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/doom/v_video.h b/apps/plugins/doom/v_video.h
index c9926e8997..c4b8927109 100644
--- a/apps/plugins/doom/v_video.h
+++ b/apps/plugins/doom/v_video.h
@@ -72,7 +72,7 @@ typedef enum
72 72
73#define CR_DEFAULT CR_RED /* default value for out of range colors */ 73#define CR_DEFAULT CR_RED /* default value for out of range colors */
74 74
75extern byte *screens[6]; 75extern byte *d_screens[6];
76extern int dirtybox[4]; 76extern int dirtybox[4];
77extern const byte gammatable[5][256]; 77extern const byte gammatable[5][256];
78extern int usegamma; 78extern int usegamma;
@@ -173,11 +173,11 @@ void V_SetPalette(int pal);
173// CPhipps - function to plot a pixel 173// CPhipps - function to plot a pixel
174 174
175#ifndef GL_DOOM 175#ifndef GL_DOOM
176#define V_PlotPixel(s,x,y,c) screens[s][x+SCREENWIDTH*y]=c 176#define V_PlotPixel(s,x,y,c) d_screens[s][x+SCREENWIDTH*y]=c
177#endif 177#endif
178 178
179#define V_AllocScreen(scrn) screens[scrn] = malloc(SCREENWIDTH*SCREENHEIGHT) 179#define V_AllocScreen(scrn) d_screens[scrn] = malloc(SCREENWIDTH*SCREENHEIGHT)
180#define V_FreeScreen(scrn) free(screens[scrn]); screens[scrn] = NULL 180#define V_FreeScreen(scrn) free(d_screens[scrn]); d_screens[scrn] = NULL
181 181
182#ifdef GL_DOOM 182#ifdef GL_DOOM
183#include "gl_struct.h" 183#include "gl_struct.h"