fixed bug with zooming in/out and time of day masks not scaling
This commit is contained in:
parent
804d114fad
commit
c229b80c35
2 changed files with 6 additions and 3 deletions
|
@ -1397,9 +1397,11 @@ void display::draw_tile(int x, int y, SDL_Surface* unit_image, double alpha, Uin
|
|||
SDL_BlitSurface(tod_hex_mask2,NULL,dst,&dstrect);
|
||||
}
|
||||
} else if(mask != "") {
|
||||
scoped_sdl_surface img(image::get_image(mask,image::UNMASKED,image::NO_ADJUST_COLOUR));
|
||||
SDL_Rect dstrect = { xpos, ypos, 0, 0 };
|
||||
SDL_BlitSurface(img,NULL,dst,&dstrect);
|
||||
const scoped_sdl_surface img(image::get_image(mask,image::UNMASKED,image::NO_ADJUST_COLOUR));
|
||||
if(img != NULL) {
|
||||
SDL_Rect dstrect = { xpos, ypos, 0, 0 };
|
||||
SDL_BlitSurface(img,NULL,dst,&dstrect);
|
||||
}
|
||||
}
|
||||
|
||||
if(grid_) {
|
||||
|
|
|
@ -147,6 +147,7 @@ void set_zoom(double amount)
|
|||
clear_surfaces(scaledImages_);
|
||||
clear_surfaces(greyedImages_);
|
||||
clear_surfaces(brightenedImages_);
|
||||
clear_surfaces(unmaskedImages_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue