projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab2971
)
Fix interlaced 3d mode second image being flipped on compiling against irrlicht ...
author
sapier
<Sapier at GMX dot net>
Thu, 28 Aug 2014 22:54:46 +0000
(
00:54
+0200)
committer
sapier
<Sapier at GMX dot net>
Thu, 28 Aug 2014 22:54:46 +0000
(
00:54
+0200)
src/drawscene.cpp
patch
|
blob
|
history
diff --git
a/src/drawscene.cpp
b/src/drawscene.cpp
index 9672affeae65841ae3b6e20b3a9c50d653a03316..5d214d1284aac6fc395f1a25a00b43a9d094fed6 100644
(file)
--- a/
src/drawscene.cpp
+++ b/
src/drawscene.cpp
@@
-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);