forked from enlightenment/efl
do not return in fullscreen_set() and use info log instead of error
SVN revision: 39155
This commit is contained in:
parent
842cadce24
commit
5fbc653df6
|
@ -472,25 +472,21 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
task_bar = FindWindow(L"HHTaskBar", NULL);
|
task_bar = FindWindow(L"HHTaskBar", NULL);
|
||||||
if (!task_bar)
|
if (!task_bar)
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("FindWindow() failed\n");
|
EINA_ERROR_PINFO("FindWindow(): can not find task bar\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (!ShowWindow(task_bar, SW_HIDE))
|
if (!ShowWindow(task_bar, SW_HIDE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("ShowWindow() failed\n");
|
EINA_ERROR_PINFO("ShowWindow(): task bar already hidden\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (!EnableWindow(task_bar, FALSE))
|
if (!EnableWindow(task_bar, FALSE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("EnableWindow() failed\n");
|
EINA_ERROR_PINFO("EnableWindow(): input already disabled\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* style: visible + popup */
|
/* style: visible + popup */
|
||||||
if (!SetWindowLong(w, GWL_STYLE, WS_POPUP | WS_VISIBLE))
|
if (!SetWindowLong(w, GWL_STYLE, WS_POPUP | WS_VISIBLE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("SetWindowLong() failed\n");
|
EINA_ERROR_PINFO("SetWindowLong() failed\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* resize window to fit the entire screen */
|
/* resize window to fit the entire screen */
|
||||||
|
@ -499,8 +495,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
|
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
|
||||||
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
|
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("SetWindowLong() failed\n");
|
EINA_ERROR_PINFO("SetWindowPos() failed\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* It seems that SetWindowPos is not sufficient.
|
* It seems that SetWindowPos is not sufficient.
|
||||||
|
@ -512,7 +507,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
|
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
|
||||||
TRUE))
|
TRUE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("MoveWindow() failed\n");
|
EINA_ERROR_PINFO("MoveWindow() failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -521,25 +516,21 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
task_bar = FindWindow(L"HHTaskBar", NULL);
|
task_bar = FindWindow(L"HHTaskBar", NULL);
|
||||||
if (!task_bar)
|
if (!task_bar)
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("FindWindow() failed\n");
|
EINA_ERROR_PINFO("FindWindow(): can not find task bar\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (!ShowWindow(task_bar, SW_SHOW))
|
if (!ShowWindow(task_bar, SW_SHOW))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("ShowWindow() failed\n");
|
EINA_ERROR_PINFO("ShowWindow(): task bar already visible\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (!EnableWindow(task_bar, TRUE))
|
if (!EnableWindow(task_bar, TRUE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("EnableWindow() failed\n");
|
EINA_ERROR_PINFO("EnableWindow(): input already enabled\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* style: visible + caption + sysmenu */
|
/* style: visible + caption + sysmenu */
|
||||||
if (!SetWindowLong(w, GWL_STYLE, WS_CAPTION | WS_SYSMENU | WS_VISIBLE))
|
if (!SetWindowLong(w, GWL_STYLE, WS_CAPTION | WS_SYSMENU | WS_VISIBLE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("SetWindowLong() failed\n");
|
EINA_ERROR_PINFO("SetWindowLong() failed\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/* restaure the position and size of the window */
|
/* restaure the position and size of the window */
|
||||||
if (!SetWindowPos(w, HWND_TOPMOST,
|
if (!SetWindowPos(w, HWND_TOPMOST,
|
||||||
|
@ -549,8 +540,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
ew->rect.bottom - ew->rect.top,
|
ew->rect.bottom - ew->rect.top,
|
||||||
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
|
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("SetWindowLong() failed\n");
|
EINA_ERROR_PINFO("SetWindowLong() failed\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* It seems that SetWindowPos is not sufficient.
|
* It seems that SetWindowPos is not sufficient.
|
||||||
|
@ -564,7 +554,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
|
||||||
ew->rect.bottom - ew->rect.top,
|
ew->rect.bottom - ew->rect.top,
|
||||||
TRUE))
|
TRUE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("MoveWindow() failed\n");
|
EINA_ERROR_PINFO("MoveWindow() failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue