From 822621f79239fadd232243a38120b4673efe60fe Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 25 Dec 2010 23:23:53 +0200 Subject: some... stuff. dunno. 8-) --- src/irrlichtwrapper.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/irrlichtwrapper.cpp') diff --git a/src/irrlichtwrapper.cpp b/src/irrlichtwrapper.cpp index 81cd7f9f0..8bd29b634 100644 --- a/src/irrlichtwrapper.cpp +++ b/src/irrlichtwrapper.cpp @@ -120,17 +120,22 @@ video::ITexture * CrackTextureMod::make(video::ITexture *original, assert(baseimage); video::ITexture *other = driver->getTexture("../data/crack.png"); + + dstream<<__FUNCTION_NAME<<": crack texture size is " + <getSize().Width<<"x" + <getSize().Height<createImage( - other, core::position2d(0,0), other->getSize());*/ - // This should work on more systems video::IImage *otherimage = driver->createImage( + other, core::position2d(0,0), other->getSize()); + // This should work on more systems + // - no, it doesn't, output is more random. + /*video::IImage *otherimage = driver->createImage( other, core::position2d(0,0), - v2u32(16, CRACK_ANIMATION_LENGTH * 16)); + v2u32(16, CRACK_ANIMATION_LENGTH * 16));*/ assert(otherimage); -- cgit v1.2.3