aboutsummaryrefslogtreecommitdiff
path: root/sdl2/surface.ha
diff options
context:
space:
mode:
authorVlad-Stefan Harbuz <vlad@vladh.net>2022-02-07 13:08:52 +0100
committerDrew DeVault <sir@cmpwn.com>2022-02-07 18:56:08 +0100
commit2276dc7ad067f7af7504783239103c1abd7b4433 (patch)
tree20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/surface.ha
parentcorrect indentation (diff)
downloadhare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to '')
-rw-r--r--sdl2/surface.ha12
1 files changed, 6 insertions, 6 deletions
diff --git a/sdl2/surface.ha b/sdl2/surface.ha
index 7bbe850..39d4d2a 100644
--- a/sdl2/surface.ha
+++ b/sdl2/surface.ha
@@ -1,10 +1,10 @@
// A collection of pixels used in software blitting.
-//
+//
// This structure should be treated as read-only, except for 'pixels', which, if
// not null, contains the raw pixel data for the surface.
-export type surface = struct {
+export type SDL_Surface = struct {
flags: u32,
- format: *pixelformat,
+ format: *SDL_PixelFormat,
w: int,
h: int,
pitch: int,
@@ -15,11 +15,11 @@ export type surface = struct {
locked: int,
lock_data: *void,
- clip_rect: rect,
+ clip_rect: SDL_Rect,
- map: *blitmap,
+ map: *SDL_BlitMap,
refcount: int,
};
-export type blitmap = void;
+export type SDL_BlitMap = void;