Move TFB_DrawCanvas_GetScreenCanvas() to sdl_common.c as TFB_GetScreenCanvas().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2839 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1541,14 +1541,6 @@ TFB_DrawCanvas_Unlock (TFB_Canvas canvas)
|
||||
SDL_UnlockSurface (surf);
|
||||
}
|
||||
|
||||
// This function should only be called from the graphics thread,
|
||||
// like from a TFB_DrawCommand_Callback command.
|
||||
TFB_Canvas
|
||||
TFB_DrawCanvas_GetScreenCanvas (SCREEN screen)
|
||||
{
|
||||
return (TFB_Canvas) SDL_Screens[screen];
|
||||
}
|
||||
|
||||
void
|
||||
TFB_DrawCanvas_GetScreenFormat (TFB_PixelFormat *fmt)
|
||||
{
|
||||
|
||||
@@ -341,6 +341,14 @@ TFB_DisplayFormatAlpha (SDL_Surface *surface)
|
||||
return newsurf;
|
||||
}
|
||||
|
||||
// This function should only be called from the graphics thread,
|
||||
// like from a TFB_DrawCommand_Callback command.
|
||||
TFB_Canvas
|
||||
TFB_GetScreenCanvas (SCREEN screen)
|
||||
{
|
||||
return (TFB_Canvas) SDL_Screens[screen];
|
||||
}
|
||||
|
||||
void TFB_BlitSurface (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst,
|
||||
SDL_Rect *dstrect, int blend_numer, int blend_denom)
|
||||
{
|
||||
|
||||
@@ -153,10 +153,11 @@ void TFB_DrawCanvas_CopyTransparencyInfo (TFB_Canvas src, TFB_Canvas dst);
|
||||
void TFB_DrawCanvas_Initialize (void);
|
||||
void TFB_DrawCanvas_Lock (TFB_Canvas canvas);
|
||||
void TFB_DrawCanvas_Unlock (TFB_Canvas canvas);
|
||||
TFB_Canvas TFB_DrawCanvas_GetScreenCanvas (SCREEN screen);
|
||||
void TFB_DrawCanvas_GetScreenFormat (TFB_PixelFormat *fmt);
|
||||
int TFB_DrawCanvas_GetStride (TFB_Canvas canvas);
|
||||
void *TFB_DrawCanvas_GetLine (TFB_Canvas canvas, int line);
|
||||
void TFB_DrawCanvas_GetPixel (TFB_Canvas canvas, int x, int y, int *r, int *g, int *b);
|
||||
|
||||
TFB_Canvas TFB_GetScreenCanvas (SCREEN screen);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user