From: Elijah G <eg642616@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: "Ergus via Emacs development discussions." <emacs-devel@gnu.org>
Subject: Re: Stipples support in MS-Windows port
Date: Fri, 10 May 2024 23:10:51 -0600 [thread overview]
Message-ID: <CACnP4NLXzgdOKhHR8+b0EZJxOfhE3QOf3Mp4xbhY-AkE+s+nnw@mail.gmail.com> (raw)
In-Reply-To: <87seyw7udp.fsf@yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]
El sáb., 4 de mayo de 2024 10:30 p. m., Po Lu <luangruo@yahoo.com> escribió:
> Po Lu <luangruo@yahoo.com> writes:
>
> > 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.
>
> Perhaps "pattern brushes" are the tool for the job?
>
>
> https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createpatternbrush
After some tests, i could execute the snippet sent in this thread without
crashes with something similar to a stipple (sadly i cannot send the patch,
i'm not in my computer), i tried using CreatePatternBrush, however it
needs the bitmap as a HBITMAP variable type, i've found some examples in
the same file (w32term.c) such as fringe bitmap that uses a HBITMAP var.
I would like to know any idea for make stipple bitmap as a HBITMAP (I'm not
sure if i should make it using CreateBitmap).
Also i would like to know if its a good idea remove XSetFillStyle from
w32_draw_glyph_string_background (
https://git.savannah.gnu.org/cgit/emacs.git/tree/src/w32term.c#n1271),
AFAIK it is only for set the fill-style which i dont think it's necessary
since i'm implementing the stipple fill-style inside a XFillRectangle
implementation which i'm working.
Thanks
[-- Attachment #2: Type: text/html, Size: 2242 bytes --]
next prev parent reply other threads:[~2024-05-11 5:10 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 2:53 Stipples support in MS-Windows port Elijah G
2024-05-03 6:09 ` Eli Zaretskii
2024-05-03 7:30 ` Po Lu
2024-05-05 3:43 ` Elijah G
2024-05-05 4:04 ` Po Lu
2024-05-05 4:30 ` Po Lu
2024-05-06 5:17 ` Elijah G
2024-05-11 5:10 ` Elijah G [this message]
2024-05-11 5:27 ` Po Lu
2024-05-11 8:24 ` Eli Zaretskii
2024-05-12 23:06 ` Elijah G.
2024-05-14 4:07 ` Elijah G.
2024-05-14 5:28 ` Po Lu
2024-05-15 1:43 ` Elijah G.
2024-05-19 22:37 ` Elijah G.
2024-05-20 11:15 ` Eli Zaretskii
2024-05-20 11:19 ` Po Lu
2024-05-20 12:32 ` Eli Zaretskii
2024-05-20 13:12 ` Po Lu
2024-05-20 19:44 ` Elijah G.
2024-05-21 2:00 ` Elijah G.
2024-05-21 11:49 ` Eli Zaretskii
2024-05-22 2:06 ` Elijah G.
2024-05-24 1:55 ` Elijah G.
2024-05-24 6:24 ` Po Lu
2024-05-25 7:24 ` Eli Zaretskii
2024-05-25 11:30 ` Arash Esbati
2024-05-26 2:37 ` Po Lu
2024-05-27 15:32 ` Arash Esbati
2024-05-26 0:27 ` Elijah G.
2024-05-26 8:09 ` Yuri Khan
2024-05-27 2:05 ` Elijah G.
2024-05-27 6:20 ` Yuri Khan
2024-05-28 2:06 ` Elijah G.
2024-05-26 8:51 ` Eli Zaretskii
2024-05-28 0:23 ` Elijah G.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACnP4NLXzgdOKhHR8+b0EZJxOfhE3QOf3Mp4xbhY-AkE+s+nnw@mail.gmail.com \
--to=eg642616@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).