Commit Graph

15 Commits

Author SHA1 Message Date
Henrik Rydgard
15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Unknown W. Brackets
6e48f907dd Support minimize and maximize state.
Fixes #6893.  Minimize is mostly useful for tooling, and maximize is a
more user-friendly way of specifying a fullscreen shortcut.
2015-12-25 19:18:32 -08:00
Henrik Rydgard
44be9f2a50 Move Windows GPU init code into Windows/GPU 2015-11-03 23:22:09 +01:00
Henrik Rydgard
7f4e473e8c Add new shader viewing tool 2015-10-14 18:10:21 +02:00
Unknown W. Brackets
e98a31ef77 Cleanup some indentation. 2015-09-24 00:00:02 -07:00
Henrik Rydgard
ec63663ad5 More consistent handling of resolution changes. Should help #7995 2015-09-23 12:25:38 +02:00
Unknown W. Brackets
5c6753e486 Correct render size on fullscreen->maximized.
We don't get a WM_SIZE event, since that is only sent on "change".  This
means we don't recalculate the client area size, so we get it wrong.

Fixes #7986.
2015-09-20 21:54:27 -07:00
Henrik Rydgard
2dcf50cf5e Fix crash toggling fullscreen from within the Settings menu.
See #7957
2015-09-20 23:57:51 +02:00
Henrik Rydgard
d746d219e1 Delete some outdated xp theme stuff 2015-09-20 21:01:19 +02:00
Henrik Rydgard
ca4ffb5fd3 Minor code cleanup 2015-09-20 20:32:56 +02:00
Henrik Rydgard
1410d7f6d5 Windows: Pause the rendering thread while switching to full screen 2015-09-20 19:45:36 +02:00
Henrik Rydgard
4d18d478a0 Sample renderWidth/pixelWidth/height once per frame for the framebuffer manager. 2015-09-19 16:19:03 +02:00
Henrik Rydgard
8bedc60a93 React to window resizing in a slightly more traditional way, may help #7957? 2015-09-19 15:16:31 +02:00
Henrik Rydgard
9bf47514b8 Assorted Windows cleanup 2015-09-19 14:43:50 +02:00
Henrik Rydgard
6cc7a85cde Rename WndMainWindow to MainWindow 2015-09-19 13:14:05 +02:00