ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/daodan_gl.c
(Generate patch)

Comparing Daodan/src/daodan_gl.c (file contents):
Revision 473 by gumby, Fri Oct 30 07:41:39 2009 UTC vs.
Revision 474 by rossy, Fri Oct 30 08:52:50 2009 UTC

# Line 241 | Line 241 | int ONICALL daodangl_platform_initialize
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);
# Line 269 | Line 266 | int ONICALL daodangl_platform_initialize
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");

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)