Skip to content

Commit

Permalink
Fix interlaced 3d mode second image being flipped on compiling agains…
Browse files Browse the repository at this point in the history
…t irrlicht >= 1.8
  • Loading branch information
sapier authored and sapier committed Aug 28, 2014
1 parent 8ab2971 commit fb2183b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drawscene.cpp
Expand Up @@ -275,7 +275,11 @@ void draw_interlaced_3d_mode(Camera& camera, bool show_hud,
guienv->drawAll();

for (unsigned int i = 0; i < screensize.Y; i+=2 ) {
#if (IRRLICHT_VERSION_MAJOR >= 1) && (IRRLICHT_VERSION_MINOR >= 8)
driver->draw2DImage(left_image, irr::core::position2d<s32>(0, i),
#else
driver->draw2DImage(left_image, irr::core::position2d<s32>(0, screensize.Y-i),
#endif
irr::core::rect<s32>(0, i,screensize.X, i+1), 0,
irr::video::SColor(255, 255, 255, 255),
false);
Expand Down

0 comments on commit fb2183b

Please sign in to comment.