Browse Source

[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 years ago
parent
commit
57ddc2eac7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/zgl_window.pas

+ 3 - 3
src/zgl_window.pas

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