Skip to content
Permalink
Browse files

Static analysis fix: dereference of a NULL pointer.

  • Loading branch information
icculus committed Mar 20, 2014
1 parent b99a625 commit 84b919a2a794c1526cde5fb512ee525d9eae69df
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/video/cocoa/SDL_cocoawindow.m
@@ -1464,9 +1464,7 @@ - (void)resetCursorRects
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
}

if ( window->flags & SDL_WINDOW_FULLSCREEN ) {
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;

if ( data && (window->flags & SDL_WINDOW_FULLSCREEN) ) {
if (SDL_ShouldAllowTopmost() && (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
/* OpenGL is rendering to the window, so make it visible! */
[data->nswindow setLevel:CGShieldingWindowLevel()];

0 comments on commit 84b919a

Please sign in to comment.