mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
example: Sync setting size and window default size
When WIDTH and HEIGHT values change, the default size of the window also changes.
This commit is contained in:
parent
83cae2885a
commit
6bf069fa7a
1 changed files with 4 additions and 3 deletions
|
@ -45,7 +45,7 @@ void win_del(void *data, Evas_Object *o, void *ev)
|
|||
elm_exit();
|
||||
}
|
||||
|
||||
static Eo* createSwView(uint32_t w = 800, uint32_t h = 800)
|
||||
static Eo* createSwView(uint32_t w = WIDTH, uint32_t h = HEIGHT)
|
||||
{
|
||||
cout << "tvg engine: software" << endl;
|
||||
|
||||
|
@ -80,7 +80,7 @@ static Eo* createSwView(uint32_t w = 800, uint32_t h = 800)
|
|||
void initGLview(Evas_Object *obj);
|
||||
void drawGLview(Evas_Object *obj);
|
||||
|
||||
static Eo* createGlView(uint32_t w = 800, uint32_t h = 800)
|
||||
static Eo* createGlView(uint32_t w = WIDTH, uint32_t h = HEIGHT)
|
||||
{
|
||||
cout << "tvg engine: opengl" << endl;
|
||||
|
||||
|
@ -108,4 +108,5 @@ static Eo* createGlView(uint32_t w = 800, uint32_t h = 800)
|
|||
return view;
|
||||
}
|
||||
|
||||
#endif //NO_GL_EXAMPLE
|
||||
#endif //NO_GL_EXAMPLE
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue