File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -308,26 +308,22 @@ window_get_borderless(pgWindowObject *self, void *v)
308308 SDL_WINDOW_BORDERLESS );
309309}
310310
311- #if SDL_VERSION_ATLEAST (2 , 0 , 16 )
312311static int
313312window_set_always_on_top (pgWindowObject * self , PyObject * arg , void * v )
314313{
314+ #if SDL_VERSION_ATLEAST (2 , 0 , 16 )
315315 int enable = PyObject_IsTrue (arg );
316316 if (enable == -1 )
317317 return -1 ;
318318
319319 SDL_SetWindowAlwaysOnTop (self -> _win , enable );
320320
321321 return 0 ;
322- }
323322#else
324- static int
325- window_set_always_on_top (pgWindowObject * self , PyObject * arg , void * v )
326- {
327323 PyErr_SetString (pgExc_SDLError , "'always_on_top' requires SDL 2.0.16+" );
328324 return -1 ;
329- }
330325#endif // SDL_VERSION_ATLEAST(2, 0, 16)
326+ }
331327
332328static PyObject *
333329window_get_always_on_top (pgWindowObject * self , void * v )
You can’t perform that action at this time.
0 commit comments