Răsfoiți Sursa

Implemented SetIcon().

woollybah 6 ani în urmă
părinte
comite
5606401448
3 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 1 1
      sdlsurface.mod/sdlsurface.bmx
  2. 1 0
      sdlvideo.mod/common.bmx
  3. 2 2
      sdlvideo.mod/sdlvideo.bmx

+ 1 - 1
sdlsurface.mod/sdlsurface.bmx

@@ -22,7 +22,7 @@
 SuperStrict
 
 Rem
-bbdoc: 
+bbdoc: SDL Surface
 End Rem
 Module SDL.SDLSurface
 

+ 1 - 0
sdlvideo.mod/common.bmx

@@ -120,6 +120,7 @@ Extern
 	Function SDL_GetWindowGammaRamp:Int(handle:Byte Ptr, red:Short Ptr, green:Short Ptr, blue:Short Ptr)
 	Function SDL_DestroyWindow(handle:Byte Ptr)
 	Function SDL_RestoreWindow(handle:Byte Ptr)
+	Function SDL_SetWindowIcon(handle:Byte Ptr, surface:Byte Ptr)
 
 	Function SDL_GetGrabbedWindow:Byte Ptr()
 	Function SDL_IsScreenSaverEnabled:Int()

+ 2 - 2
sdlvideo.mod/sdlvideo.bmx

@@ -110,10 +110,10 @@ Type TSDLWindow
 	End Method
 	
 	Rem
-	bbdoc: 
+	bbdoc: Sets the icon for the window.
 	End Rem
 	Method SetIcon(icon:TSDLSurface)
-		' TODO
+		SDL_SetWindowIcon(windowPtr, icon.surfacePtr)
 	End Method
 	
 	Rem