Mercurial > mm7
diff OSWindow.h @ 2005:8fa26b63244a
Merge
author | Grumpy7 |
---|---|
date | Wed, 06 Nov 2013 00:09:47 -0800 |
parents | 4088cc908c78 |
children | 71a814f4482a |
line wrap: on
line diff
--- a/OSWindow.h Tue Nov 05 20:42:54 2013 -0800 +++ b/OSWindow.h Wed Nov 06 00:09:47 2013 -0800 @@ -6,7 +6,7 @@ { public: static OSWindow *Create(const wchar_t *title, int window_width, int window_height); - + void Delete(); void SetFullscreenMode(); void SetWindowedMode(int new_window_width, int new_window_height); @@ -38,11 +38,15 @@ protected: bool Initialize(const wchar_t *title, int window_width, int window_height); + void Deinitialize(); + bool SetColorDepth(int bit); bool WinApiMessageProc(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result); HWND api_handle; + DEVMODE dm; private: + bool ChangedColorDepth; static LPARAM __stdcall WinApiMsgRouter(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); HMENU CreateDebugMenuPanel();