Browse Source

- fixed range check error in wnd_Update

git-svn-id: http://zengl.googlecode.com/svn/branches/0.3.x@1965 6573c10b-8653-0410-9706-d32479e959fb
dr.andru 12 năm trước cách đây
mục cha
commit
3caa81d1d2
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/zgl_main.pas
  2. 1 1
      src/zgl_window.pas

+ 1 - 1
src/zgl_main.pas

@@ -49,7 +49,7 @@ uses
 
 const
   cs_ZenGL    = 'ZenGL 0.3.7';
-  cs_Date     = '2013.01.20';
+  cs_Date     = '2013.01.21';
   cv_major    = 0;
   cv_minor    = 3;
   cv_revision = 7;

+ 1 - 1
src/zgl_window.pas

@@ -420,7 +420,7 @@ begin
   else
     wndStyle := WS_CAPTION or WS_MINIMIZEBOX or WS_SYSMENU or WS_VISIBLE;
 
-  SetWindowLongW( wndHandle, GWL_STYLE, wndStyle );
+  SetWindowLongW( wndHandle, GWL_STYLE, LongInt(wndStyle) );
   SetWindowLongW( wndHandle, GWL_EXSTYLE, {$IFDEF WINDESKTOP}WS_EX_APPWINDOW or{$ENDIF} WS_EX_TOPMOST * Byte( FullScreen ) );
 {$ENDIF}
 {$IFDEF MACOSX}