From 38deb8f13a9896f2d6eb884c6a8bbc9b10001255 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Mon, 3 Apr 2006 08:51:08 +0000 Subject: 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 --- apps/plugins/doom/r_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/doom/r_draw.c') diff --git a/apps/plugins/doom/r_draw.c b/apps/plugins/doom/r_draw.c index b6d84f0dff..a6bc21e420 100644 --- a/apps/plugins/doom/r_draw.c +++ b/apps/plugins/doom/r_draw.c @@ -573,7 +573,7 @@ void R_InitBuffer(int width, int height) viewwindowy = width==SCREENWIDTH ? 0 : (SCREENHEIGHT-(ST_SCALED_HEIGHT-1)-height)>>1; - topleft = screens[0] + viewwindowy*SCREENWIDTH + viewwindowx; + topleft = d_screens[0] + viewwindowy*SCREENWIDTH + viewwindowx; // Preclaculate all row offsets. // CPhipps - merge viewwindowx into here @@ -627,7 +627,7 @@ void R_FillBackScreen (void) void R_VideoErase(unsigned ofs, int count) { - memcpy(screens[0]+ofs, screens[1]+ofs, count); // LFB copy. + memcpy(d_screens[0]+ofs, d_screens[1]+ofs, count); // LFB copy. } // -- cgit v1.2.3