From 29b2f98b2294e6b15d8c311b7750ea3eaa8cac41 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 2 Jan 2005 05:11:16 +0000 Subject: [PATCH] Allow SDL to be loaded by Matlab --- include/SDL_video.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/SDL_video.h b/include/SDL_video.h index d820e27e4..96ecc39f6 100644 --- a/include/SDL_video.h +++ b/include/SDL_video.h @@ -89,11 +89,6 @@ typedef struct SDL_PixelFormat { Uint8 alpha; } SDL_PixelFormat; -/* typedef for private surface blitting functions */ -struct SDL_Surface; -typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, - struct SDL_Surface *dst, SDL_Rect *dstrect); - /* This structure should be treated as read-only, except for 'pixels', which, if not NULL, contains the raw pixel data for the surface. */ @@ -152,6 +147,10 @@ typedef struct SDL_Surface { (surface->offset || \ ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0)) +/* typedef for private surface blitting functions */ +typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, + struct SDL_Surface *dst, SDL_Rect *dstrect); + /* Useful for determining the video hardware capabilities */ typedef struct SDL_VideoInfo {