Skip to content
Snippets Groups Projects
Commit 79277ed0 authored by deuce's avatar deuce
Browse files

Fix last commit

parent f35e4d76
Branches
Tags
No related merge requests found
......@@ -1147,17 +1147,19 @@ int sdl_video_event_thread(void *data)
for(y=0; y<rect->height; y++) {
for(x=0; x<rect->width; x++) {
int palette_entry;
r.x=x*vstat.scaling;
r.y=y*vstat.scaling;
r.w=vstat.scaling;
r.h=vstat.scaling;
palette_entry=rect->data[y*rect->width+x];
#ifdef OFFSCREEN_FILL
r.x=x*vstat.scaling;
r.y=y*vstat.scaling;
sdl.FillRect(new_rect, &r, sdl.MapRGB(new_rect->format
, dac_default[vstat.palette[palette_entry]].red
, dac_default[vstat.palette[palette_entry]].green
, dac_default[vstat.palette[palette_entry]].blue));
#else
r.x=(x+rect.x)*vstat.scaling;
r.y=(y+rect.y)*vstat.scaling;
sdl.FillRect(win, &r, sdl.MapRGB(win->format
, dac_default[vstat.palette[palette_entry]].red
, dac_default[vstat.palette[palette_entry]].green
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment