emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stipples support in MS-Windows port


From: Po Lu
Subject: Re: Stipples support in MS-Windows port
Date: Sun, 05 May 2024 12:04:56 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Elijah G <eg642616@gmail.com> writes:

> Thanks, as far as i understood then should not i touch or even edit
> those lines?  I was thinking in define them (since them are only
> available in X) inside the same file, similar in how pgtkterm.c or
> androidterm.c does, i think i should check again
> `image_create_bitmap_from_data' and `prepare_face_for_display'
> definitions.

It helps not to dwell on the X implementation too long.  You should
select whatever interfaces appear the most suitable on Windows, so long
as the logic around when to display stipples is preserved faithfully.

On Android, for instance, the relevant code exists in two functions
defined in EmacsGC.java, prepareStipple and blitOpaqueStipple, which are
nothing akin to the X implementation it emulates.  The same is true of
haikuterm.c, haiku_draw_stipple_background, and BView_DrawBitmapTiled in
haiku_draw_support.cc.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]