engines should "handle" being resized - even if they asked not to.
SVN revision: 39747
This commit is contained in:
parent
89f0b3024e
commit
1998a5ccda
|
@ -39,9 +39,14 @@ MainWndProc(HWND hwnd,
|
||||||
{
|
{
|
||||||
PRECT rect = (PRECT)lParam;
|
PRECT rect = (PRECT)lParam;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
rect->right - rect->left,
|
||||||
|
rect->bottom - rect->top);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
rect->right - rect->left,
|
rect->right - rect->left,
|
||||||
rect->bottom - rect->top);
|
rect->bottom - rect->top);
|
||||||
|
win_w = rect->right - rect->left;
|
||||||
|
win_h = rect->bottom - rect->top;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
|
|
|
@ -144,7 +144,11 @@ engine_directfb_event_window(const DFBWindowEvent *ev)
|
||||||
if (ev->type & DWET_SIZE)
|
if (ev->type & DWET_SIZE)
|
||||||
{
|
{
|
||||||
DBG("\tDWET_SIZE %dx%d\n", ev->w, ev->h);
|
DBG("\tDWET_SIZE %dx%d\n", ev->w, ev->h);
|
||||||
evas_output_size_set(evas, ev->w, ev->h);
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
ev->w, ev->h);
|
||||||
|
evas_output_size_set(evas, ev->w, ev->h);
|
||||||
|
win_w = ev->w;
|
||||||
|
win_h = ev->h;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev->type & DWET_CLOSE)
|
if (ev->type & DWET_CLOSE)
|
||||||
|
|
|
@ -39,10 +39,15 @@ MainWndProc(HWND hwnd,
|
||||||
case WM_SIZING:
|
case WM_SIZING:
|
||||||
{
|
{
|
||||||
PRECT rect = (PRECT)lParam;
|
PRECT rect = (PRECT)lParam;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
rect->right - rect->left,
|
||||||
|
rect->bottom - rect->top);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
rect->right - rect->left,
|
rect->right - rect->left,
|
||||||
rect->bottom - rect->top);
|
rect->bottom - rect->top);
|
||||||
|
win_w = rect->right - rect->left;
|
||||||
|
win_h = rect->bottom - rect->top;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
|
|
|
@ -119,9 +119,14 @@ engine_gl_x11_loop(void)
|
||||||
ev.xexpose.height);
|
ev.xexpose.height);
|
||||||
break;
|
break;
|
||||||
case ConfigureNotify:
|
case ConfigureNotify:
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
ev.xconfigure.width,
|
||||||
|
ev.xconfigure.height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
ev.xconfigure.width,
|
ev.xconfigure.width,
|
||||||
ev.xconfigure.height);
|
ev.xconfigure.height);
|
||||||
|
win_w = ev.xconfigure.width;
|
||||||
|
win_h = ev.xconfigure.height;
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||||
|
|
|
@ -131,9 +131,14 @@ MainWndProc(HWND hwnd,
|
||||||
{
|
{
|
||||||
PRECT rect = (PRECT)lParam;
|
PRECT rect = (PRECT)lParam;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
rect->right - rect->left,
|
||||||
|
rect->bottom - rect->top);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
rect->right - rect->left,
|
rect->right - rect->left,
|
||||||
rect->bottom - rect->top);
|
rect->bottom - rect->top);
|
||||||
|
win_w = rect->right - rect->left;
|
||||||
|
win_h = rect->bottom - rect->top;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
|
|
|
@ -116,9 +116,14 @@ engine_software_16_x11_loop(void)
|
||||||
ev.xexpose.height);
|
ev.xexpose.height);
|
||||||
break;
|
break;
|
||||||
case ConfigureNotify:
|
case ConfigureNotify:
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
ev.xconfigure.width,
|
||||||
|
ev.xconfigure.height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
ev.xconfigure.width,
|
ev.xconfigure.width,
|
||||||
ev.xconfigure.height);
|
ev.xconfigure.height);
|
||||||
|
win_w = ev.xconfigure.width;
|
||||||
|
win_h = ev.xconfigure.height;
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||||
|
|
|
@ -39,9 +39,14 @@ MainWndProc(HWND hwnd,
|
||||||
{
|
{
|
||||||
PRECT rect = (PRECT)lParam;
|
PRECT rect = (PRECT)lParam;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
rect->right - rect->left,
|
||||||
|
rect->bottom - rect->top);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
rect->right - rect->left,
|
rect->right - rect->left,
|
||||||
rect->bottom - rect->top);
|
rect->bottom - rect->top);
|
||||||
|
win_w = rect->right - rect->left;
|
||||||
|
win_h = rect->bottom - rect->top;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
|
|
|
@ -63,6 +63,8 @@ engine_software_sdl_loop(void)
|
||||||
evas_event_feed_mouse_up(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL);
|
evas_event_feed_mouse_up(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL);
|
||||||
break;
|
break;
|
||||||
case SDL_VIDEORESIZE:
|
case SDL_VIDEORESIZE:
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
event.resize.w, event.resize.w);
|
||||||
evas_output_size_set(evas, event.resize.w, event.resize.w);
|
evas_output_size_set(evas, event.resize.w, event.resize.w);
|
||||||
evas_output_size_get(evas, &win_w, &win_h);
|
evas_output_size_get(evas, &win_w, &win_h);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -123,9 +123,14 @@ engine_software_x11_loop(void)
|
||||||
ev.xexpose.height);
|
ev.xexpose.height);
|
||||||
break;
|
break;
|
||||||
case ConfigureNotify:
|
case ConfigureNotify:
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
ev.xconfigure.width,
|
||||||
|
ev.xconfigure.height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
ev.xconfigure.width,
|
ev.xconfigure.width,
|
||||||
ev.xconfigure.height);
|
ev.xconfigure.height);
|
||||||
|
win_w = ev.xconfigure.width;
|
||||||
|
win_h = ev.xconfigure.height;
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||||
|
|
|
@ -262,12 +262,17 @@ engine_software_xcb_loop(void)
|
||||||
case XCB_CONFIGURE_NOTIFY:
|
case XCB_CONFIGURE_NOTIFY:
|
||||||
{
|
{
|
||||||
xcb_configure_notify_event_t *e;
|
xcb_configure_notify_event_t *e;
|
||||||
|
|
||||||
e = (xcb_configure_notify_event_t *)ev;
|
e = (xcb_configure_notify_event_t *)ev;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
e->width,
|
||||||
|
e->height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
e->width,
|
e->width,
|
||||||
e->height);
|
e->height);
|
||||||
|
win_w = e->width;
|
||||||
|
win_h = e->height;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case XCB_ENTER_NOTIFY:
|
case XCB_ENTER_NOTIFY:
|
||||||
|
|
|
@ -119,9 +119,14 @@ engine_xrender_x11_loop(void)
|
||||||
ev.xexpose.height);
|
ev.xexpose.height);
|
||||||
break;
|
break;
|
||||||
case ConfigureNotify:
|
case ConfigureNotify:
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
ev.xconfigure.width,
|
||||||
|
ev.xconfigure.height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
ev.xconfigure.width,
|
ev.xconfigure.width,
|
||||||
ev.xconfigure.height);
|
ev.xconfigure.height);
|
||||||
|
win_w = ev.xconfigure.width;
|
||||||
|
win_h = ev.xconfigure.height;
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||||
|
|
|
@ -280,9 +280,14 @@ engine_xrender_xcb_loop(void)
|
||||||
|
|
||||||
e = (xcb_configure_notify_event_t *)ev;
|
e = (xcb_configure_notify_event_t *)ev;
|
||||||
|
|
||||||
|
evas_output_viewport_set(evas, 0, 0,
|
||||||
|
e->width,
|
||||||
|
e->height);
|
||||||
evas_output_size_set(evas,
|
evas_output_size_set(evas,
|
||||||
e->width,
|
e->width,
|
||||||
e->height);
|
e->height);
|
||||||
|
win_w = e->width;
|
||||||
|
win_h = e->height;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case XCB_ENTER_NOTIFY:
|
case XCB_ENTER_NOTIFY:
|
||||||
|
|
Loading…
Reference in New Issue