]> git.eshelyaron.com Git - emacs.git/commit
Fully implement stipples for text on Haiku
authorPo Lu <luangruo@yahoo.com>
Sun, 8 May 2022 04:42:11 +0000 (04:42 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 8 May 2022 04:42:11 +0000 (04:42 +0000)
commitb205d67f8c92593f8e170419d677a70e535a3a19
treefe40a61bb0a5af50d20821c37cead392d04b310f
parentfaa342c794dec66d6b77ccf550361d58455a4454
Fully implement stipples for text on Haiku

* src/haikufont.c (haikufont_draw): Use
`haiku_draw_background_rect' instead.

* src/haikuterm.c (haiku_draw_plain_background): Change
arguments to accept rect manually.
(haiku_get_bitmap): Delete function.
(haiku_get_bitmap_rec): New function.
(haiku_draw_stipple_background): Accept rect instead of box
sizes.
(haiku_draw_background_rect): New function.
(haiku_maybe_draw_background): Use that instead.
(haiku_draw_image_glyph_string): Add notice.
(haiku_draw_glyph_string): Set `stippled_p' correctly.

* src/haikuterm.h (struct haiku_bitmap_record): New fields for
keeping track of stipple state.
* src/image.c (image_create_bitmap_from_data)
(image_create_bitmap_from_file, free_bitmap_record): Free and
set them accordingly.
src/haikufont.c
src/haikuterm.c
src/haikuterm.h
src/image.c