hedgewars/uStore.pas
changeset 10644 3b8290381fcb
parent 10640 efa069762cb2
child 10735 42af3bfc832c
equal deleted inserted replaced
10643:8d6063af793a 10644:3b8290381fcb
    94 end;
    94 end;
    95 
    95 
    96 procedure InitZoom(zoom: real);
    96 procedure InitZoom(zoom: real);
    97 begin
    97 begin
    98     SetScale(zoom);
    98     SetScale(zoom);
       
    99     // make sure view limits are updated
       
   100     // because SetScale() doesn't do it, if zoom=cScaleFactor
       
   101     updateViewLimits();
    99 end;
   102 end;
   100 
   103 
   101 function WriteInRect(Surface: PSDL_Surface; X, Y: LongInt; Color: LongWord; Font: THWFont; s: PChar): TSDL_Rect;
   104 function WriteInRect(Surface: PSDL_Surface; X, Y: LongInt; Color: LongWord; Font: THWFont; s: PChar): TSDL_Rect;
   102 var w, h: LongInt;
   105 var w, h: LongInt;
   103     tmpsurf: PSDL_Surface;
   106     tmpsurf: PSDL_Surface;