Added possibility to filp overlayed image (patch #3315, reviewed by isaac)

This commit is contained in:
Cédric Duval 2004-08-25 20:57:09 +00:00
parent 22fa0f4059
commit 7abd4de722

View file

@ -162,6 +162,9 @@ bool show_intro_part(display& screen, const config& part,
surface img(image::get_image(image_name,image::UNSCALED));
if(img.null()) continue;
if ((**i)["flip"] == "yes")
img.assign(image::reverse_image(img));
SDL_Rect image_rect;
image_rect.x = x + dstrect.x;
image_rect.y = y + dstrect.y;