mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Mapster32: Fix clipboard tile display in 3D mode.
git-svn-id: https://svn.eduke32.com/eduke32@3183 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
225294e8ce
commit
0a999d7a7e
1 changed files with 3 additions and 1 deletions
|
@ -4263,6 +4263,7 @@ static void drawtileinfo(const char *title,int32_t x,int32_t y,int32_t picnum,in
|
|||
|
||||
if (tilesizx[picnum]>0 && tilesizy[picnum]>0)
|
||||
{
|
||||
double scalediv;
|
||||
int32_t scale=65536;
|
||||
int32_t x1 = x+80;
|
||||
|
||||
|
@ -4270,7 +4271,8 @@ static void drawtileinfo(const char *title,int32_t x,int32_t y,int32_t picnum,in
|
|||
x1 /= 2;
|
||||
|
||||
x1 = (int32_t)(x1 * 320.0/xdimgame);
|
||||
scale = (int32_t)(max(tilesizx[picnum],tilesizy[picnum])/24.0);
|
||||
scalediv = max(tilesizx[picnum],tilesizy[picnum])/24.0;
|
||||
scale = (int32_t)((double)scale/scalediv);
|
||||
|
||||
setaspect(65536L, (int32_t)divscale16(ydim*320L,xdim*200L));
|
||||
// +1024: prevents rotatesprite from setting aspect itself
|
||||
|
|
Loading…
Reference in a new issue