mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed a bug with rendering renderbuffer to SDL_Surface (vid.yres used instead of y)
This commit is contained in:
parent
198ae61ae4
commit
92517d7413
@ -120,7 +120,7 @@ SDL_Surface *renderbuffer::render() {
|
||||
GLERR("readPixels");
|
||||
for(int iy=0; iy<y/2; iy++)
|
||||
for(int ix=0; ix<x; ix++)
|
||||
swap(qpixel(srf,ix,iy), qpixel(srf,ix,vid.yres-1-iy));
|
||||
swap(qpixel(srf,ix,iy), qpixel(srf,ix,y-1-iy));
|
||||
}
|
||||
return srf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user