Tk Source Code

Check-in [b87aa58e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [481255]: photo images with -palette 2 were corrupted on Windows. TkAlignImageData() computed the line length of the output bitmap from the line length of the input data instead of from the width, and TkPutImage() drew the 1 bits of a monochrome image with the background color instead of the foreground color. New test command testalignimagedata and tests imgPhoto-26.*.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | win-mono-image
Files: files | file ages | folders
SHA3-256: b87aa58e0baafa45833ec0b87b0564b67c9aee1baed27752d99f32a136579b04
User & Date: serhiy.storchaka 2026-09-28 15:13:47.305
Context
2026-09-29
19:45
Merge trunk check-in: ab3df46c user: serhiy.storchaka tags: win-mono-image
2026-09-28
15:13
Fix [481255]: photo images with -palette 2 were corrupted on Windows. TkAlignImageData() computed the line length of the output bitmap from the line length of the input data instead of from the width, and TkPutImage() drew the 1 bits of a monochrome image with the background color instead of the foreground color. New test command testalignimagedata and tests imgPhoto-26.*. check-in: b87aa58e user: serhiy.storchaka tags: win-mono-image
12:54
Fix [d01ec103c0]: After "wm withdraw .;wm state . iconic", "wm state ." always returns "withdrawn" check-in: 0f881dba user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkImgUtil.c.
Changes to tests/constraints.tcl.
Changes to tests/imgPhoto.test.
Changes to win/tkWinDraw.c.
Changes to win/tkWinTest.c.