diff options
author | fvogel <fvogelnew1@free.fr> | 2018-11-11 21:05:38 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-11-11 21:05:38 (GMT) |
commit | 29acee22500b4d937e6f46118f36635cdecd8f5e (patch) | |
tree | 804aa3453abb7c06545b275756f54ccfd177b84f /generic/tkImgPhInstance.c | |
parent | 17bdedc1bd72f47554923320fa54e2c5ab938458 (diff) | |
download | tk-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.c | 3 |
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)) { |