Commits

Leonard Ritter  committed 15e1d15

SDL_GetWindowSize

  • Participants
  • Parent commits 16274db

Comments (0)

Files changed (3)

File sdl/__init__.py

         return None
     return event
 
+def SDL_GetWindowSize(window):
+    w = _ffi.new('int *')
+    h = _ffi.new('int *')
+    _SDL_GetWindowSize(window, w, h)
+    return w[0], h[0]
+
 ################################################################################
 
 # add wrapped functions
 "_SDL_GetError",
 "_SDL_Init",
 "_SDL_PollEvent",
+"_SDL_GetWindowSize",
 
 ]
 
 "SDL_CreateColorCursor",
 "SDL_SCANCODE_KP_000",
 "SDL_GetSurfaceAlphaMod",
-"SDL_GetWindowSize",
 "SDL_SCANCODE_KP_MEMSTORE",
 "SDL_WINDOWEVENT_SHOWN",
 "SDL_StopTextInput",
 SDL_GetRGBA = guard(lookup('SDL_GetRGBA'))
 SDL_UnlockSurface = guard(lookup('SDL_UnlockSurface'))
 SDL_FlushEvents = guard(lookup('SDL_FlushEvents'))
-SDL_BlitSurface = 140027187430640
+SDL_BlitSurface = 140436402701552
 SDL_SCANCODE_KP_RIGHTBRACE = 185
 SDL_BLENDMODE_NONE = 0
 SDL_SetWindowFullscreen = guard(lookup('SDL_SetWindowFullscreen'))
 SDL_PeepEvents = guard(lookup('SDL_PeepEvents'))
 SDL_SCANCODE_KP_AMPERSAND = 199
 SDL_SCANCODE_UNDO = 122
-SDL_BlitScaled = 140027187431408
+SDL_BlitScaled = 140436402702320
 SDL_SCANCODE_SLEEP = 282
 SDL_SCANCODE_CRSEL = 163
 SDL_LASTEVENT = 65535
 SDL_CreateColorCursor = guard(lookup('SDL_CreateColorCursor'))
 SDL_SCANCODE_KP_000 = 177
 SDL_GetSurfaceAlphaMod = guard(lookup('SDL_GetSurfaceAlphaMod'))
-SDL_GetWindowSize = guard(lookup('SDL_GetWindowSize'))
+_SDL_GetWindowSize = guard(lookup('SDL_GetWindowSize'))
 SDL_SCANCODE_KP_MEMSTORE = 208
 SDL_WINDOWEVENT_SHOWN = 1
 SDL_StopTextInput = guard(lookup('SDL_StopTextInput'))

File sdl/builder.py

         'SDL_GetError',
         'SDL_Init',
         'SDL_PollEvent',
+        'SDL_GetWindowSize',
     ],
     AUTOCHECK_BLACKLIST = [
         'SDL_GetError',