forked from enlightenment/efl
ecore: fix ecore_evas_sdl window size.
Patch by Alexey Yakovenko <wakeroid@gmail.com> fixing ticket #1790. SVN revision: 79734
This commit is contained in:
parent
79e00d2786
commit
a94c9b785a
|
@ -59,3 +59,4 @@ Vikram Narayanan <vikram186@gmail.com>
|
||||||
Daniel Zaoui <daniel.zaoui@samsung.com>
|
Daniel Zaoui <daniel.zaoui@samsung.com>
|
||||||
Yakov Goldberg <yakov.g@samsung.com>
|
Yakov Goldberg <yakov.g@samsung.com>
|
||||||
Eduardo Lima (Etrunko) <eblima@gmail.com>
|
Eduardo Lima (Etrunko) <eblima@gmail.com>
|
||||||
|
Alexey Yakovenko <wakeroid@gmail.com>
|
||||||
|
|
|
@ -1027,3 +1027,7 @@
|
||||||
|
|
||||||
* Correctly define alloca
|
* Correctly define alloca
|
||||||
* Fix ieeefp.h inclusion on Solaris
|
* Fix ieeefp.h inclusion on Solaris
|
||||||
|
|
||||||
|
2012-11-27 Alexey Yakovenko
|
||||||
|
|
||||||
|
* Fix ecore_evas_sdl window resize bug.
|
||||||
|
|
|
@ -135,6 +135,8 @@ _ecore_evas_sdl_event_video_resize(void *data EINA_UNUSED, int type EINA_UNUSED,
|
||||||
|
|
||||||
ee->w = e->w;
|
ee->w = e->w;
|
||||||
ee->h = e->h;
|
ee->h = e->h;
|
||||||
|
ee->req.w = e->w;
|
||||||
|
ee->req.h = e->h;
|
||||||
|
|
||||||
evas_output_size_set(ee->evas, e->w, e->h);
|
evas_output_size_set(ee->evas, e->w, e->h);
|
||||||
evas_output_viewport_set(ee->evas, 0, 0, e->w, e->h);
|
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)
|
||||||
int rmethod;
|
int rmethod;
|
||||||
|
|
||||||
if ((w == ee->w) && (h == ee->h)) return;
|
if ((w == ee->w) && (h == ee->h)) return;
|
||||||
|
ee->req.w = w;
|
||||||
|
ee->req.h = h;
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
ee->h = h;
|
ee->h = h;
|
||||||
|
|
||||||
|
@ -324,6 +328,8 @@ static void
|
||||||
_ecore_evas_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h)
|
_ecore_evas_move_resize(Ecore_Evas *ee, int x EINA_UNUSED, int y EINA_UNUSED, int w, int h)
|
||||||
{
|
{
|
||||||
if ((w == ee->w) && (h == ee->h)) return;
|
if ((w == ee->w) && (h == ee->h)) return;
|
||||||
|
ee->req.w = w;
|
||||||
|
ee->req.h = h;
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
ee->h = h;
|
ee->h = h;
|
||||||
|
|
||||||
|
@ -466,6 +472,8 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
|
||||||
if (w < 1) w = 1;
|
if (w < 1) w = 1;
|
||||||
if (h < 1) h = 1;
|
if (h < 1) h = 1;
|
||||||
ee->visible = 1;
|
ee->visible = 1;
|
||||||
|
ee->req.w = w;
|
||||||
|
ee->req.h = h;
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
ee->h = h;
|
ee->h = h;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue