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;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
evas_output_size_set(evas,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
win_w = rect->right - rect->left;
|
||||
win_h = rect->bottom - rect->top;
|
||||
return 0;
|
||||
}
|
||||
case WM_RBUTTONDOWN:
|
||||
|
|
|
@ -144,7 +144,11 @@ engine_directfb_event_window(const DFBWindowEvent *ev)
|
|||
if (ev->type & DWET_SIZE)
|
||||
{
|
||||
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)
|
||||
|
|
|
@ -40,9 +40,14 @@ MainWndProc(HWND hwnd,
|
|||
{
|
||||
PRECT rect = (PRECT)lParam;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
evas_output_size_set(evas,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
win_w = rect->right - rect->left;
|
||||
win_h = rect->bottom - rect->top;
|
||||
return 0;
|
||||
}
|
||||
case WM_RBUTTONDOWN:
|
||||
|
|
|
@ -119,9 +119,14 @@ engine_gl_x11_loop(void)
|
|||
ev.xexpose.height);
|
||||
break;
|
||||
case ConfigureNotify:
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
evas_output_size_set(evas,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
win_w = ev.xconfigure.width;
|
||||
win_h = ev.xconfigure.height;
|
||||
break;
|
||||
case EnterNotify:
|
||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||
|
|
|
@ -131,9 +131,14 @@ MainWndProc(HWND hwnd,
|
|||
{
|
||||
PRECT rect = (PRECT)lParam;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
evas_output_size_set(evas,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
win_w = rect->right - rect->left;
|
||||
win_h = rect->bottom - rect->top;
|
||||
return 0;
|
||||
}
|
||||
case WM_RBUTTONDOWN:
|
||||
|
|
|
@ -116,9 +116,14 @@ engine_software_16_x11_loop(void)
|
|||
ev.xexpose.height);
|
||||
break;
|
||||
case ConfigureNotify:
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
evas_output_size_set(evas,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
win_w = ev.xconfigure.width;
|
||||
win_h = ev.xconfigure.height;
|
||||
break;
|
||||
case EnterNotify:
|
||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||
|
|
|
@ -39,9 +39,14 @@ MainWndProc(HWND hwnd,
|
|||
{
|
||||
PRECT rect = (PRECT)lParam;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
evas_output_size_set(evas,
|
||||
rect->right - rect->left,
|
||||
rect->bottom - rect->top);
|
||||
win_w = rect->right - rect->left;
|
||||
win_h = rect->bottom - rect->top;
|
||||
return 0;
|
||||
}
|
||||
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);
|
||||
break;
|
||||
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_get(evas, &win_w, &win_h);
|
||||
break;
|
||||
|
|
|
@ -123,9 +123,14 @@ engine_software_x11_loop(void)
|
|||
ev.xexpose.height);
|
||||
break;
|
||||
case ConfigureNotify:
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
evas_output_size_set(evas,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
win_w = ev.xconfigure.width;
|
||||
win_h = ev.xconfigure.height;
|
||||
break;
|
||||
case EnterNotify:
|
||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||
|
|
|
@ -265,9 +265,14 @@ engine_software_xcb_loop(void)
|
|||
|
||||
e = (xcb_configure_notify_event_t *)ev;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
e->width,
|
||||
e->height);
|
||||
evas_output_size_set(evas,
|
||||
e->width,
|
||||
e->height);
|
||||
win_w = e->width;
|
||||
win_h = e->height;
|
||||
break;
|
||||
}
|
||||
case XCB_ENTER_NOTIFY:
|
||||
|
|
|
@ -119,9 +119,14 @@ engine_xrender_x11_loop(void)
|
|||
ev.xexpose.height);
|
||||
break;
|
||||
case ConfigureNotify:
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
evas_output_size_set(evas,
|
||||
ev.xconfigure.width,
|
||||
ev.xconfigure.height);
|
||||
win_w = ev.xconfigure.width;
|
||||
win_h = ev.xconfigure.height;
|
||||
break;
|
||||
case EnterNotify:
|
||||
evas_event_feed_mouse_in(evas, 0, NULL);
|
||||
|
|
|
@ -280,9 +280,14 @@ engine_xrender_xcb_loop(void)
|
|||
|
||||
e = (xcb_configure_notify_event_t *)ev;
|
||||
|
||||
evas_output_viewport_set(evas, 0, 0,
|
||||
e->width,
|
||||
e->height);
|
||||
evas_output_size_set(evas,
|
||||
e->width,
|
||||
e->height);
|
||||
win_w = e->width;
|
||||
win_h = e->height;
|
||||
break;
|
||||
}
|
||||
case XCB_ENTER_NOTIFY:
|
||||
|
|
Loading…
Reference in New Issue