| 241 |
|
Rect.top = (GetSystemMetrics(SM_CYSCREEN) / 2) - (gl->DisplayMode.Height / 2); |
| 242 |
|
Rect.right = Rect.left + gl->DisplayMode.Width; |
| 243 |
|
Rect.bottom = Rect.top + gl->DisplayMode.Height; |
| 244 |
– |
//http://msdn.microsoft.com/en-us/library/ms632665(VS.85).aspx |
| 245 |
– |
//dwStyle |
| 246 |
– |
//[in] Specifies the window style of the window whose required size is to be calculated. Note that you cannot specify the WS_OVERLAPPED style. |
| 244 |
|
AdjustWindowRect(&Rect, WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_CAPTION, TRUE); |
| 245 |
|
|
| 246 |
|
SetWindowPos(ONgPlatformData.Window, NULL, Rect.left, Rect.top, Rect.right - Rect.left, Rect.bottom - Rect.top, SWP_NOACTIVATE | SWP_NOZORDER); |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
if (gl_gamma_ramp_valid) |
| 272 |
– |
//Its working now |
| 269 |
|
daodan_set_gamma(ONrPersist_GetGamma()); |
| 270 |
|
else |
| 271 |
|
DDrStartupMessage("gamma adjustment not supported"); |