Skip to content

Commit fb2183b

Browse files
sapiersapier
sapier
authored and
sapier
committedAug 28, 2014
Fix interlaced 3d mode second image being flipped on compiling against irrlicht >= 1.8
1 parent 8ab2971 commit fb2183b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/drawscene.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ void draw_interlaced_3d_mode(Camera& camera, bool show_hud,
275275
guienv->drawAll();
276276

277277
for (unsigned int i = 0; i < screensize.Y; i+=2 ) {
278+
#if (IRRLICHT_VERSION_MAJOR >= 1) && (IRRLICHT_VERSION_MINOR >= 8)
279+
driver->draw2DImage(left_image, irr::core::position2d<s32>(0, i),
280+
#else
278281
driver->draw2DImage(left_image, irr::core::position2d<s32>(0, screensize.Y-i),
282+
#endif
279283
irr::core::rect<s32>(0, i,screensize.X, i+1), 0,
280284
irr::video::SColor(255, 255, 255, 255),
281285
false);

0 commit comments

Comments
 (0)
Please sign in to comment.