add some #ifdef ugliness to enable the home grown image loader to work too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4656 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-07-16 18:20:12 +00:00
parent b676c4e77d
commit 6f5149f565
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-07-16 Angus Leeming <leeming@lyx.org>
* XPainter.C: add some #ifdef ugliness to enable the home grown image
loader to work too.
2002-07-16 André Pönitz <poenitz@gmx.net>

View File

@ -23,7 +23,11 @@
#include "encoding.h"
#include "language.h"
#ifdef USE_XFORMS_IMAGE_LOADER
#include "xformsImage.h"
#else
#include "graphics/GraphicsImageXPM.h"
#endif
#include "support/LAssert.h"
#include "support/lstrings.h"
@ -152,7 +156,12 @@ Painter & XPainter::image(int x, int y,
int w, int h,
grfx::Image const & i)
{
#ifdef USE_XFORMS_IMAGE_LOADER
grfx::xformsImage const & image = static_cast<grfx::xformsImage const &>(i);
#else
grfx::ImageXPM const & image = static_cast<grfx::ImageXPM const &>(i);
#endif
XGCValues val;
val.function = GXcopy;
GC gc = XCreateGC(fl_get_display(), owner_.getPixmap(),