Don't move GUI components on zoom (#196)

stable-5.1
Armin Burgmeier 2010-03-16 12:10:11 +01:00
parent 5f1c4ab93d
commit 3a87bf7a4e
1 changed files with 4 additions and 0 deletions

View File

@ -1041,6 +1041,10 @@ void C4Viewport::Draw(C4TargetFacet &cgo0, bool fDrawOverlay)
Application.DDraw->SetPrimaryClipper(DrawX,DrawY,DrawX+(ViewWdt-1)/fGUIZoom,DrawY+(ViewHgt-1)/fGUIZoom);
cgo.Set(cgo0);
cgo.X = DrawX; cgo.Y = DrawY;
cgo.Wdt = int(float(ViewWdt)/fGUIZoom); cgo.Hgt = int(float(ViewHgt)/fGUIZoom);
cgo.TargetX = ViewX; cgo.TargetY = ViewY;
last_gui_draw_cgo = cgo;
// draw custom GUI objects