29 lines
826 B
C
29 lines
826 B
C
#include "../MultiSpacc.h"
|
|
#include "SDL/SDL.h"
|
|
#include "SDL/SDL_image.h"
|
|
#include "SDL/SDL_mixer.h"
|
|
#include "SDL/SDL_ttf.h"
|
|
|
|
MultiSpacc_Window *MultiSpacc_SetWindow( int Width, int Height, int Bits, Uint32 Flags ) {
|
|
return SDL_SetVideoMode( Width, Height, Bits, Flags );
|
|
}
|
|
MultiSpacc_Surface *MultiSpacc_GetWindowSurface( MultiSpacc_Window *Window ) {
|
|
return Window;
|
|
}
|
|
|
|
void MultiSpacc_SetAppTitle( MultiSpacc_Window *Window, const char *Title ) {
|
|
SDL_WM_SetCaption( Title, NULL );
|
|
}
|
|
void MultiSpacc_SetAppIcon( MultiSpacc_Window *Window, MultiSpacc_Surface *Icon ) {
|
|
SDL_WM_SetIcon( Icon, NULL );
|
|
}
|
|
|
|
int MultiSpacc_SetColorKey( MultiSpacc_Surface *Surface, bool Flag, Uint32 Key ) {
|
|
if ( Flag ) {
|
|
return SDL_SetColorKey( Surface, SDL_SRCCOLORKEY, Key );
|
|
}
|
|
else {
|
|
return SDL_SetColorKey( Surface, 0, Key );
|
|
}
|
|
}
|