[vtkusers] Problem with fullscreen on Windows with fix

David Cole DLRdave at aol.com
Wed Mar 18 12:21:31 EDT 2015


What version of VTK are you guys looking at for this?

The problem should be fixed already (but only for going full screen on
the primary monitor) in VTK 'master' and the recently released VTK
version 6.2.

Please try the latest, and see if you still have problems.


HTH,
David C.


On Wed, Mar 18, 2015 at 7:25 AM, artix93 <artix93 at hotmail.it> wrote:
>         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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list