mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Change clipping in DSBarInfo::DrawGraphic()
- Fixed: When DSBarInfo::DrawGraphic() is used scaled, without fullscreen offset, if one of the top and left clip locations was 0 and the other was non-0, the 0 one would be clipped to the edge of a 4:3 box centered on the screen instead of the edge of the screen.
This commit is contained in:
parent
798267d223
commit
bce7d12379
1 changed files with 4 additions and 0 deletions
|
@ -1215,7 +1215,11 @@ public:
|
|||
if(Scaled)
|
||||
{
|
||||
if(cx != 0 || cy != 0)
|
||||
{
|
||||
screen->VirtualToRealCoords(dcx, dcy, tmp, tmp, script->resW, script->resH, true);
|
||||
if (cx == 0) dcx = 0;
|
||||
if (cy == 0) dcy = 0;
|
||||
}
|
||||
if(cr != 0 || cb != 0 || clearDontDraw)
|
||||
screen->VirtualToRealCoords(dcr, dcb, tmp, tmp, script->resW, script->resH, true);
|
||||
screen->VirtualToRealCoords(dx, dy, w, h, script->resW, script->resH, true);
|
||||
|
|
Loading…
Reference in a new issue