summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhInstance.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-11-11 21:05:59 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-11-11 21:05:59 (GMT)
commit431fd3a61d1b6b652122132d4244c358bca5f0e6 (patch)
treeae428e3a0aea41c03251a5a003d846ac8d597bae /generic/tkImgPhInstance.c
parent5b0708b387746f652eec16923f781ac05d81c9e4 (diff)
parent29acee22500b4d937e6f46118f36635cdecd8f5e (diff)
downloadtk-431fd3a61d1b6b652122132d4244c358bca5f0e6.zip
tk-431fd3a61d1b6b652122132d4244c358bca5f0e6.tar.gz
tk-431fd3a61d1b6b652122132d4244c358bca5f0e6.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 b3ad53b..e209d5d 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)) {