summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhInstance.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-11-11 21:05:38 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-11-11 21:05:38 (GMT)
commit29acee22500b4d937e6f46118f36635cdecd8f5e (patch)
tree804aa3453abb7c06545b275756f54ccfd177b84f /generic/tkImgPhInstance.c
parent17bdedc1bd72f47554923320fa54e2c5ab938458 (diff)
downloadtk-29acee22500b4d937e6f46118f36635cdecd8f5e.zip
tk-29acee22500b4d937e6f46118f36635cdecd8f5e.tar.gz
tk-29acee22500b4d937e6f46118f36635cdecd8f5e.tar.bz2
Restore the build for Windows (got broken by [4a251d07db]).
Diffstat (limited to 'generic/tkImgPhInstance.c')
-rw-r--r--generic/tkImgPhInstance.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkImgPhInstance.c b/generic/tkImgPhInstance.c
index 76c4a8a..fb106b1 100644
--- a/generic/tkImgPhInstance.c
+++ b/generic/tkImgPhInstance.c
@@ -609,6 +609,7 @@ TkImgPhotoDisplay(
* to imageX and imageY. */
{
PhotoInstance *instancePtr = clientData;
+ XVisualInfo visInfo = instancePtr->visualInfo;
/*
* If there's no pixmap, it means that an error occurred while creating
@@ -637,8 +638,6 @@ TkImgPhotoDisplay(
photo->data = NULL;
XDestroyImage(photo);
#else
- XVisualInfo visInfo = instancePtr->visualInfo;
-
if ((instancePtr->masterPtr->flags & COMPLEX_ALPHA)
&& visInfo.depth >= 15
&& (visInfo.class == DirectColor || visInfo.class == TrueColor)) {