Previous 199869 Revisions Next

r19919 Saturday 29th December, 2012 at 12:44:09 UTC by Oliver Stöneberg
reverted bogus fix (nw)
[src/osd/windows]window.c

trunk/src/osd/windows/window.c
r19918r19919
839839   // in window mode, find the nearest
840840   if (!window->fullscreen)
841841   {
842      // result can be NULL when e.g. the color scheme changes
843      do
844      {
845         if (proposed != NULL)
846            monitor = winvideo_monitor_from_handle(MonitorFromRect(proposed, MONITOR_DEFAULTTONEAREST));
847         else
848            monitor = winvideo_monitor_from_handle(MonitorFromWindow(window->hwnd, MONITOR_DEFAULTTONEAREST));
849      } while (monitor == NULL);
842      if (proposed != NULL)
843         monitor = winvideo_monitor_from_handle(MonitorFromRect(proposed, MONITOR_DEFAULTTONEAREST));
844      else
845         monitor = winvideo_monitor_from_handle(MonitorFromWindow(window->hwnd, MONITOR_DEFAULTTONEAREST));
850846   }
851847
852848   // in full screen, just use the configured monitor

Previous 199869 Revisions Next


© 1997-2024 The MAME Team