Files
mcde/include/Makefile.am
T
lotherkandClaude Opus 5.5 f788367833 mcde: read PNG with libpng, not with Motif
Motif 2.3.8 shifts the channels of a PNG without alpha the wrong way and
draws only its blue (docs/reference/motif-png.txt).  libDtSvc gets
McdeImageGetPixmap/McdeImageFreePixmap (Mcde/Image.h): PNG through libpng's
simplified interface (png_image, the background for the alpha), packed by
the visual's masks; every other format still through XmGetPixmap.  dtwm's
backdrops and slideshow and the small pictures of System Settings use it.
dtwm now also frees a backdrop pixmap that is not in Motif's cache (a
scaled copy), which it kept for good before.

configure finds libpng >= 1.6 with pkg-config; the recipe includes
graphics/png's buildlink3.mk (Motif depends on it already); the header is
in the PLIST.

Measured on Xvfb: the RGB PNG that showed only blue (slide-3.png before)
shows its colours as backdrop (build/mcde-shots/slide-3.png) and as a
small picture (desk-2.png).  A 16-bit PNG is not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:16:14 +00:00

35 lines
536 B
Makefile

MAINTAINERCLEANFILES = Makefile.in
# Install the header files
nobase_include_HEADERS = Mcde/GlobalMenu.h \
Mcde/Image.h \
Mcde/McdeSys.h \
Dt/Editor.h \
Dt/TermPrim.h \
Dt/Term.h \
Dt/HelpDialog.h \
Dt/Help.h \
Dt/HelpQuickD.h \
Dt/Print.h \
Dt/Mrm.h \
Dt/Dt.h \
Dt/Action.h \
Dt/Dnd.h \
Dt/Dts.h \
Dt/Session.h \
Dt/Saver.h \
Dt/Wsm.h \
Dt/MsgLog.h \
Dt/ComboBox.h \
Dt/SpinBox.h \
Dt/MenuButton.h \
Tt/tt_c.h \
Tt/tttk.h \
csa/csa.h \
Dt/Info.h \
Dt/Search.h \
Dt/Mmdb.h \
Dt/DtXinerama.h \
Dt/SvcPam.h