예제 #1
0
 virtual void OnResize(UPixelScalar width, UPixelScalar height) {
   PaintWindow::OnResize(width, height);
   projection.SetScale(fixed(width) / 21000);
   projection.SetScreenOrigin(width / 2, height / 2);
 }
예제 #2
0
 virtual void OnResize(PixelSize new_size) override {
     PaintWindow::OnResize(new_size);
     projection.SetScale(fixed(new_size.cx) / 21000);
     projection.SetScreenOrigin(new_size.cx / 2, new_size.cy / 2);
 }
예제 #3
0
 virtual bool on_resize(unsigned width, unsigned height) {
   PaintWindow::on_resize(width, height);
   projection.SetScale(fixed(width) / 21000);
   projection.SetScreenOrigin(width / 2, height / 2);
   return true;
 }