mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Fix the aspect of save thumbnails in Polymost / Polymer in widescreen.
Patch from Fox. git-svn-id: https://svn.eduke32.com/eduke32@6593 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6a77175ac5
commit
8744a70dcf
1 changed files with 2 additions and 2 deletions
|
@ -660,7 +660,7 @@ static void G_ReadGLFrame(void)
|
|||
char *const pic = (char *) waloff[TILE_SAVESHOT];
|
||||
|
||||
int32_t x, y;
|
||||
const int32_t xf = divscale16(xdim, 320); // (xdim<<16)/320
|
||||
const int32_t xf = divscale16(ydim*4/3, 320);
|
||||
const int32_t yf = divscale16(ydim, 200); // (ydim<<16)/200
|
||||
|
||||
tilesiz[TILE_SAVESHOT].x = 200;
|
||||
|
@ -682,7 +682,7 @@ static void G_ReadGLFrame(void)
|
|||
|
||||
for (x = 0; x < 320; x++)
|
||||
{
|
||||
const palette_t *pix = &frame[base + mulscale16(x, xf)];
|
||||
const palette_t *pix = &frame[base + mulscale16(x, xf) + (xdim-(ydim*4/3))/2];
|
||||
pic[320 * y + x] = getclosestcol(pix->r, pix->g, pix->b);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue