mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-15 22:03:24 -06:00
SurfaceCtrl_Demo: Adding override of Layout function to prevent of view deformation while resizing the window
git-svn-id: svn://ultimatepp.org/upp/trunk@14746 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
642c0be680
commit
31832bdf55
2 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ class SurfaceCtrl_Demo : public WithSurfaceCtrl_DemoLayout<TopWindow> {
|
|||
public:
|
||||
typedef SurfaceCtrl_Demo CLASSNAME;
|
||||
SurfaceCtrl_Demo();
|
||||
virtual void Layout();
|
||||
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ namespace Upp{
|
|||
};
|
||||
Sizeable().Zoomable();
|
||||
}
|
||||
|
||||
void SurfaceCtrl_Demo::Layout(){
|
||||
canvas.GLResize(GetSize().cx,GetSize().cy);
|
||||
}
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue