Browse Source

Fixed window GetID() method returning wrong value.

woollybah 7 years ago
parent
commit
4d57709d0a
2 changed files with 2 additions and 1 deletions
  1. 1 0
      sdlvideo.mod/common.bmx
  2. 1 1
      sdlvideo.mod/sdlvideo.bmx

+ 1 - 0
sdlvideo.mod/common.bmx

@@ -84,6 +84,7 @@ Extern
 
 	Function SDL_GetWindowDisplayIndex:Int(handle:Byte Ptr)
 	Function SDL_GetWindowPixelFormat:UInt(handle:Byte Ptr)
+	Function SDL_GetWindowID:UInt(handle:Byte Ptr)
 	Function SDL_SetWindowDisplayMode:Int(handle:Byte Ptr, mode:Byte Ptr)
 	Function SDL_ShowWindow(handle:Byte Ptr)
 	Function SDL_HideWindow(handle:Byte Ptr)

+ 1 - 1
sdlvideo.mod/sdlvideo.bmx

@@ -92,7 +92,7 @@ Type TSDLWindow
 	returns: The ID of the window on success or 0 on failure.
 	End Rem
 	Method GetID:UInt()
-		Return SDL_GetWindowPixelFormat(windowPtr)
+		Return SDL_GetWindowID(windowPtr)
 	End Method
 	
 	Rem