X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Flib%2Fsdl2%2Fsdlsurface.inc;h=0c5a0fd7c43523ebcc0856f2e21b9a715bd90534;hb=ac201b02f10ef558087d50f6b03b4519ab567558;hp=05624f4ee232acebf746bf285e6dc994a1409203;hpb=423556f23c02a18964bd2c1e125516c0c902ca46;p=d2df-sdl.git diff --git a/src/lib/sdl2/sdlsurface.inc b/src/lib/sdl2/sdlsurface.inc index 05624f4..0c5a0fd 100644 --- a/src/lib/sdl2/sdlsurface.inc +++ b/src/lib/sdl2/sdlsurface.inc @@ -154,7 +154,7 @@ function SDL_SaveBMP(Const surface:PSDL_Surface; Const filename:AnsiString):sInt * Sets the RLE acceleration hint for a surface. * * 0 on success, or -1 if the surface is not valid - * + * * If RLE is enabled, colorkey and alpha blending blits are much faster, * but the surface must be locked before directly accessing the pixels. *} @@ -322,9 +322,9 @@ function SDL_ConvertPixels(width: SInt32; height: SInt32; src_format: UInt32; co * * If rect is NULL, the whole surface will be filled with color. * - * The color should be a pixel of the format used by the surface, and + * The color should be a pixel of the format used by the surface, and * can be generated by the SDL_MapRGB() function. - * + * * 0 on success, or -1 on error. *} @@ -392,7 +392,7 @@ function SDL_FillRects(dst: PSDL_Surface; const rects: PSDL_Rect; count: SInt32; (* SDL_surface.h uses #define to change all SDL_BlitSurface() calls into SDL_UpperBlit() calls. * * Since Pascal macro support is very limited, we workaround by outright pointing SDL_BlitSurface() to SDL_UpperBlit(). *) -function SDL_BlitSurface(src: PSDL_Surface; const srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): SInt32 cdecl; +function SDL_BlitSurface(src: PSDL_Surface; const srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): SInt32 cdecl; external SDL_LibName name {$IF DEFINED(DELPHI) AND DEFINED(MACOS)} '_SDL_UpperBlit' {$ELSE} 'SDL_UpperBlit' {$IFEND}; @@ -421,7 +421,7 @@ function SDL_SoftStretch(src: PSDL_Surface; const srcrect: PSDL_Rect; dst: PSDL_ (* SDL_surface.h uses #define to change all SDL_BlitSurfaceScaled() calls into SDL_UpperBlitScaled() calls. * * Since Pascal macro support is very limited, we workaround by outright pointing SDL_BlitSurfaceScaled() to SDL_UpperBlitScaled(). *) -function SDL_BlitSurfaceScaled(src: PSDL_Surface; const srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): SInt32 cdecl; +function SDL_BlitSurfaceScaled(src: PSDL_Surface; const srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): SInt32 cdecl; external SDL_LibName name {$IF DEFINED(DELPHI) AND DEFINED(MACOS)} '_SDL_UpperBlitScaled' {$ELSE} 'SDL_UpperBlitScaled' {$IFEND}; {**