1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sdl: fix old vsdl2 references

This commit is contained in:
Nicolas Sauzede
2019-12-05 10:58:48 +01:00
committed by Alexander Medvednikov
parent 90e3ab8c1e
commit 2e30e1453d
2 changed files with 66 additions and 66 deletions

View File

@ -10,7 +10,7 @@ module image
//////////////////////////////////////////////////////////
// SDL_Image.h
//////////////////////////////////////////////////////////
//fn C.IMG_Load_RW(logo &vsdl2.RwOps, free_src int) &vsdl2.Surface
//fn C.IMG_Load_RW(logo &sdl.RwOps, free_src int) &sdl.Surface
fn C.IMG_Init(flags int) int
fn C.IMG_Quit()
fn C.IMG_Load(file byteptr) voidptr
@ -23,7 +23,7 @@ pub fn quit() {
C.IMG_Quit()
}
pub fn load(file string) &vsdl2.Surface {
pub fn load(file string) &sdl.Surface {
res := C.IMG_Load(file.str)
return res
}