X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Frenders%2Fopengl%2Fr_holmes.pas;h=8c4bfdcd2501407dd0f8d27c7719f0b5e6b58ef2;hb=d0374fd617aa1703e4aa31b8ff3b0f5228636021;hp=f83fa6de9cd2823a93dca3dfc91bf2494cb272bd;hpb=c85d8973f64bc9c17d5233ee70b8000f1b3578bf;p=d2df-sdl.git diff --git a/src/game/renders/opengl/r_holmes.pas b/src/game/renders/opengl/r_holmes.pas index f83fa6d..8c4bfdc 100644 --- a/src/game/renders/opengl/r_holmes.pas +++ b/src/game/renders/opengl/r_holmes.pas @@ -808,6 +808,11 @@ var begin if (gPlayer1 = nil) then exit; + glPushMatrix; + (* hack: scale and translate must be handled by hlmContext.glSetScaleTrans, but it dont work for some reason *) + glScalef(g_dbg_scale, g_dbg_scale, 1.0); + glTranslatef(-vpx, -vpy, 0); + if (hlmContext = nil) then hlmContext := r_fui_gfx_gl.TGxContext.Create(); gxSetContext(hlmContext); @@ -819,7 +824,7 @@ begin glScalef(g_dbg_scale, g_dbg_scale, 1.0); glTranslatef(-vpx, -vpy, 0); } - hlmContext.glSetScaleTrans(g_dbg_scale, -vpx, -vpy); +// hlmContext.glSetScaleTrans(g_dbg_scale, -vpx, -vpy); // uncomment when fix it glEnable(GL_SCISSOR_TEST); glScissor(0, gScreenHeight-gPlayerScreenSize.Y-1, gPlayerScreenSize.X, gPlayerScreenSize.Y); @@ -880,6 +885,8 @@ begin gxSetContext(nil); end; + glPopMatrix; + if showMapCurPos then begin s := Format('mappos:(%d,%d)', [pmsCurMapX, pmsCurMapY]);