]> git.neil.brown.name Git - edlib.git/commit
Move some common code from Draw:image implementations into lib-window
authorNeilBrown <neil@brown.name>
Fri, 29 Sep 2023 02:59:35 +0000 (12:59 +1000)
committerNeilBrown <neil@brown.name>
Fri, 29 Sep 2023 23:46:10 +0000 (09:46 +1000)
commita0ee48d984c725a4ab22814488dede6afdf9a10a
treebb580334d12d3db3ca576869f4b8c6595b567c6c
parent4382041409c8b5987830e3873895d7a1e36970ce
Move some common code from Draw:image implementations into lib-window

lib-window now provides Draw:scale-image which is used by Draw:image to
interpret the request and provide simple requests for the Drawing
engine.
pygtk doesn't use this yet.

Draw:scale-image should probably parse the file name etc too.

This fixes a bug in image display in ncurses where the image isn't
centred vertically when it isn't high enough to fill space.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
core-window.c
display-ncurses.c
display-x11-xcb.c
tests.d/02-presenter