Mercurial > sdl-ios-xcode
comparison src/video/SDL_drawpoint.c @ 3160:210e209b87cc
error message typo fix
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 28 May 2009 09:39:14 +0000 |
parents | 133601e3b255 |
children | 0267b8b1595c |
comparison
equal
deleted
inserted
replaced
3139:7f684f249ec9 | 3160:210e209b87cc |
---|---|
27 int | 27 int |
28 SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color) | 28 SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color) |
29 { | 29 { |
30 /* This function doesn't work on surfaces < 8 bpp */ | 30 /* This function doesn't work on surfaces < 8 bpp */ |
31 if (dst->format->BitsPerPixel < 8) { | 31 if (dst->format->BitsPerPixel < 8) { |
32 SDL_SetError("SDL_DrawLine(): Unsupported surface format"); | 32 SDL_SetError("SDL_DrawPoint(): Unsupported surface format"); |
33 return (-1); | 33 return (-1); |
34 } | 34 } |
35 | 35 |
36 /* Perform clipping */ | 36 /* Perform clipping */ |
37 if (x < dst->clip_rect.x || y < dst->clip_rect.y || | 37 if (x < dst->clip_rect.x || y < dst->clip_rect.y || |