[vtkusers] Problem with fullscreen on Windows with fix
artix93
artix93 at hotmail.it
Wed Mar 18 07:25:35 EDT 2015
right now the getscreen size is as follow
> int *vtkWin32OpenGLRenderWindow::GetScreenSize(void)
> {
> RECT rect;
>
> SystemParametersInfo(SPI_GETWORKAREA, 0, &rect, 0);
>
> this->Size[0] = rect.right - rect.left;
> this->Size[1] = rect.bottom - rect.top;
>
> return this->Size;
> }
and it doesn't get the right height because it gets the work area and that
doesn't include the space occupied by the task bar.
It should be changed, if you want to get the right screen size, as follow
> int *vtkWin32OpenGLRenderWindow::GetScreenSize(void)
> {
> MONITORINFO target;
> target.cbSize = sizeof(MONITORINFO);
> HMONITOR Hmon = MonitorFromWindow(hWnd, MONITOR_DEFAULTTOPRIMARY);
> GetMonitorInfo(Hmon, &target);
> target.rcMonitor.right - target.rcMonitor.left;
> target.rcMonitor.bottom - target.rcMonitor.top;
>
> this->Size[0] = target.rcMonitor.right - target.rcMonitor.left;
> this->Size[1] = target.rcMonitor.bottom - target.rcMonitor.top;
> return this->Size;
> }
--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-fullscreen-on-Windows-with-fix-tp5730930p5730933.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list