Просмотр исходного кода

Add guard for X11 related initializations.

Christopher Reed 12 лет назад
Родитель
Сommit
336ce497de
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      Core/Contents/Source/PolySDLCore.cpp

+ 4 - 2
Core/Contents/Source/PolySDLCore.cpp

@@ -111,12 +111,14 @@ SDLCore::SDLCore(PolycodeView *view, int _xRes, int _yRes, bool fullScreen, bool
 		SDL_JoystickOpen(i);
 		input->addJoystick(i);
 	}
-	
+
+#ifdef USE_X11
 	// Start listening to clipboard events.
 	// (Yes on X11 you need to actively listen to
 	//  clipboard events and respond to them)
 	init_scrap();
-
+#endif // USE_X11
+	
 	((OpenGLRenderer*)renderer)->Init();
 	CoreServices::getInstance()->installModule(new GLSLShaderModule());	
 }