fix a typo in a function's name

( get_transpErAnt_portion -> get_transpArEnt_portion )
This commit is contained in:
Ali El Gariani 2007-05-11 23:27:44 +00:00
parent 3f1033ea23
commit e634ef4649
3 changed files with 3 additions and 3 deletions

View file

@ -1093,7 +1093,7 @@ void display::draw_game_status()
void display::draw_image_for_report(surface& img, SDL_Rect& rect)
{
SDL_Rect visible_area = get_non_transperant_portion(img);
SDL_Rect visible_area = get_non_transparent_portion(img);
SDL_Rect target = rect;
if(visible_area.x != 0 || visible_area.y != 0 || visible_area.w != img->w || visible_area.h != img->h) {
if(visible_area.w == 0 || visible_area.h == 0) {

View file

@ -986,7 +986,7 @@ private:
}
SDL_Rect get_non_transperant_portion(surface const &surf)
SDL_Rect get_non_transparent_portion(surface const &surf)
{
SDL_Rect res = {0,0,0,0};
const surface nsurf(make_neutral_surface(surf));

View file

@ -135,7 +135,7 @@ surface create_compatible_surface(surface const &surf, int width = -1, int heigh
void fill_rect_alpha(SDL_Rect &rect, Uint32 colour, Uint8 alpha, surface const &target);
SDL_Rect get_non_transperant_portion(surface const &surf);
SDL_Rect get_non_transparent_portion(surface const &surf);
bool operator==(const SDL_Rect& a, const SDL_Rect& b);
bool operator!=(const SDL_Rect& a, const SDL_Rect& b);