summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-11-27 06:39:46 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-11-27 06:39:46 +0000
commita94c9b785aa7e7394333020b3290d776297e2652 (patch)
tree0659393baf537cc76a1a78e6cc5175374b5ed559 /legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
parent79e00d2786f9e544c521bbbf0b8559fccc1b49eb (diff)
ecore: fix ecore_evas_sdl window size.
Patch by Alexey Yakovenko <wakeroid@gmail.com> fixing ticket #1790. SVN revision: 79734
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
index 9c0c8ee618..90b348ef2c 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_sdl.c
@@ -135,6 +135,8 @@ _ecore_evas_sdl_event_video_resize(void *data EINA_UNUSED, int type EINA_UNUSED,
135 135
136 ee->w = e->w; 136 ee->w = e->w;
137 ee->h = e->h; 137 ee->h = e->h;
138 ee->req.w = e->w;
139 ee->req.h = e->h;
138 140
139 evas_output_size_set(ee->evas, e->w, e->h); 141 evas_output_size_set(ee->evas, e->w, e->h);
140 evas_output_viewport_set(ee->evas, 0, 0, e->w, e->h); 142 evas_output_viewport_set(ee->evas, 0, 0, e->w, e->h);
@@ -274,6 +276,8 @@ _ecore_evas_resize(Ecore_Evas *ee, int w, int h)
274 int rmethod; 276 int rmethod;
275 277
276 if ((w == ee->w) && (h == ee->h)) return; 278 if ((w == ee->w) && (h == ee->h)) return;
279 ee->req.w = w;
280 ee->req.h = h;
277 ee->w = w; 281 ee->w = w;
278 ee->h = h; 282 ee->h = h;
279 283
@@ -324,6 +328,8 @@ static void
324_ecore_evas_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h) 328_ecore_evas_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h)
325{ 329{
326 if ((w == ee->w) && (h == ee->h)) return; 330 if ((w == ee->w) && (h == ee->h)) return;
331 ee->req.w = w;
332 ee->req.h = h;
327 ee->w = w; 333 ee->w = w;
328 ee->h = h; 334 ee->h = h;
329 335
@@ -466,6 +472,8 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
466 if (w < 1) w = 1; 472 if (w < 1) w = 1;
467 if (h < 1) h = 1; 473 if (h < 1) h = 1;
468 ee->visible = 1; 474 ee->visible = 1;
475 ee->req.w = w;
476 ee->req.h = h;
469 ee->w = w; 477 ee->w = w;
470 ee->h = h; 478 ee->h = h;
471 479