fix a typo in a function's name
( get_transpErAnt_portion -> get_transpArEnt_portion )
This commit is contained in:
parent
3f1033ea23
commit
e634ef4649
3 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue