1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed a bug with rendering renderbuffer to SDL_Surface (vid.yres used instead of y)

This commit is contained in:
Zeno Rogue 2018-09-13 00:35:54 +02:00
parent 198ae61ae4
commit 92517d7413

View File

@ -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;
}