瀏覽代碼

[MacOS X]fixed fullscreen

git-svn-id: http://zengl.googlecode.com/svn/branches/0.3.x@1930 6573c10b-8653-0410-9706-d32479e959fb
dr.andru 13 年之前
父節點
當前提交
57ddc2eac7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/zgl_window.pas

+ 3 - 3
src/zgl_window.pas

@@ -546,16 +546,16 @@ begin
   wndY := Y;
   wndY := Y;
 
 
   if appInitedToHandle Then
   if appInitedToHandle Then
-  {$IFDEF MACOSX}
     begin
     begin
+      {$IFDEF MACOSX}
       clipRgn := NewRgn();
       clipRgn := NewRgn();
       SetRectRgn( clipRgn, X, Y, X + wndWidth, Y + wndHeight );
       SetRectRgn( clipRgn, X, Y, X + wndWidth, Y + wndHeight );
       aglSetInteger( oglContext, AGL_CLIP_REGION, clipRgn );
       aglSetInteger( oglContext, AGL_CLIP_REGION, clipRgn );
       aglEnable( oglContext, AGL_CLIP_REGION );
       aglEnable( oglContext, AGL_CLIP_REGION );
       DisposeRgn( clipRgn );
       DisposeRgn( clipRgn );
+      {$ENDIF}
+      exit;
     end;
     end;
-  {$ENDIF}
-  exit;
 
 
 {$IFDEF USE_X11}
 {$IFDEF USE_X11}
   if wndHandle <> 0 Then
   if wndHandle <> 0 Then