diff options
author | fvogel <fvogelnew1@free.fr> | 2018-11-11 21:05:59 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-11-11 21:05:59 (GMT) |
commit | 431fd3a61d1b6b652122132d4244c358bca5f0e6 (patch) | |
tree | ae428e3a0aea41c03251a5a003d846ac8d597bae /generic/tkImgPhInstance.c | |
parent | 5b0708b387746f652eec16923f781ac05d81c9e4 (diff) | |
parent | 29acee22500b4d937e6f46118f36635cdecd8f5e (diff) | |
download | tk-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.c | 3 |
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)) { |