Ignore:
Timestamp:
Dec 23, 2016, 10:07:39 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Drawing and loading using bitmap rawimage improvement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r29 r30  
    7474
    7575  // Default
    76   SpinEditWidth.Value := 200;
    77   SpinEditHeight.Value := 100;
     76  if Assigned(Core.Project) then begin
     77    SpinEditWidth.Value := Core.Project.Bitmap.Size.X;
     78    SpinEditHeight.Value := Core.Project.Bitmap.Size.Y;
     79  end else begin
     80    SpinEditWidth.Value := 200;
     81    SpinEditHeight.Value := 100;
     82  end;
    7883  SpinEditDPI.Value := 72;
    7984end;
Note: See TracChangeset for help on using the changeset viewer.