diff options
| author | Drew DeVault <sir@cmpwn.com> | 2023-09-22 14:27:12 +0200 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2023-09-22 14:27:12 +0200 |
| commit | 260b9effb19fe85604f05ccf0be18795fd2bc782 (patch) | |
| tree | 283fc37827b7f0c4eacd8672383ebe0c89c8cdc4 /sdl2/surface.ha | |
| parent | Add SDL_CreateTextureFromSurface() (diff) | |
| download | hare-chip8-260b9effb19fe85604f05ccf0be18795fd2bc782.tar.gz | |
all: fix build errors
Diffstat (limited to '')
| -rw-r--r-- | sdl2/surface.ha | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sdl2/surface.ha b/sdl2/surface.ha index 572bdcc..24153c3 100644 --- a/sdl2/surface.ha +++ b/sdl2/surface.ha @@ -8,12 +8,12 @@ export type SDL_Surface = struct { w: int, h: int, pitch: int, - pixels: nullable *void, + pixels: nullable *opaque, - userdata: *void, + userdata: *opaque, locked: int, - lock_data: *void, + lock_data: *opaque, clip_rect: SDL_Rect, @@ -22,7 +22,7 @@ export type SDL_Surface = struct { refcount: int, }; -export type SDL_BlitMap = void; +export type SDL_BlitMap = opaque; @symbol("SDL_CreateRGBSurface") fn _SDL_CreateRGBSurface(flags: u32, width: int, height: int, depth: int, Rmask: u32, Gmask: u32, Bmask: u32, |
