From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Elijah G Newsgroups: gmane.emacs.devel Subject: Re: Stipples support in MS-Windows port Date: Sun, 5 May 2024 23:17:06 -0600 Message-ID: References: <87a5l49a53.fsf@yahoo.com> <87seyw7udp.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ed3e820617c22e7c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 06 07:19:15 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s3qks-0003DH-D5 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 May 2024 07:19:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3qkF-0006aP-Ot; Mon, 06 May 2024 01:18:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3qj3-0006Hw-H6 for emacs-devel@gnu.org; Mon, 06 May 2024 01:17:32 -0400 Original-Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3qj1-00022n-Vi for emacs-devel@gnu.org; Mon, 06 May 2024 01:17:21 -0400 Original-Received: by mail-qv1-xf44.google.com with SMTP id 6a1803df08f44-69b514d3cf4so26265286d6.0 for ; Sun, 05 May 2024 22:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714972639; x=1715577439; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=q6sZp3A+xR2HHQ3AwbOFw7KGJVmLSER1mefdSAzFxdA=; b=jtciMSHXKoh88asYjoy09sSxLGMaB4LWJv1zaQeyLQO8pFDD5gyKAOjKeZLiVxzv4Y 3dv/UtQNf221X6dmZYCn5cerZmlqXzNWRwDb9J4mW/iNoiSWop9domXeqHBBjKJFC3Xn T9tgdUzBKcsxUIIc27WNrGcPEduN4FxMEdYwv6ILnDR5CaNulpWzR2/2vblJbJZn8MmT 4qyNnYVYUzLxwLykMcTdzntsjtUSOU7a1etoknKd/K1geyozR/qRh7xJhvhPFfHIbbYa gXaalMQIc7QTo/jx2O48jO9JeIGwC48p+gyZ0SqWqCHQqEaOW4LPNnaOGFpSm3O793pn M3Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714972639; x=1715577439; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q6sZp3A+xR2HHQ3AwbOFw7KGJVmLSER1mefdSAzFxdA=; b=ms13iTG8NaYcS6MPQdP4+sZyxuZ12/qj2aWWkMSGtWpx5CQrq+G3wRArtKh0u8SSx2 B8w15Nh3x9FH/IWAf4QInryvFsi/oO0LzBi0k2QXRFijaScPFIXSvOThzwgoZBu6aFmS I/JyqZB2JfZWgrLsUcRDDSbOEqd2lQfBBZ9OdcU3dpUXb8bNWWH69DObhC+ZDuVzhjul /Q4TdcPOgpiKQhHI+RazN1fcgG6N/BSpyBmG7O7+i2kKgk8knkkMqDa7T2DWcqZsGFqn GmboUN+PMBclc8+ehudybOfoep9fOq68QYlBun1HGE6Aef8ahlRpDSlmo0C02DcCt0HA ZmhQ== X-Gm-Message-State: AOJu0YxF3nUyxoKsHUjSWr++XP4ZGR/KmjVdEexM4128KtvYkozUBeHw 4i2gJ96Vp5T/XiB8wunYmsMygB8+5kfvOWp1ER1BtYpENFemjVc+UMNNNJaMWPDZ8FYD/fnpqgQ nx3vXhbkUs18/xY+Onb1Aj8yxrhJYHAZe X-Google-Smtp-Source: AGHT+IGvWgaiSWMAZiP0OKq3xCGKfEsoL1+uiWgg670nZooaRan0j0im5JVgE4ok8iSOSaGiX388rlyuJcGzlwtrDTQ= X-Received: by 2002:a05:622a:316:b0:43a:e9a6:47f0 with SMTP id q22-20020a05622a031600b0043ae9a647f0mr12835839qtw.33.1714972638656; Sun, 05 May 2024 22:17:18 -0700 (PDT) In-Reply-To: <87seyw7udp.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::f44; envelope-from=eg642616@gmail.com; helo=mail-qv1-xf44.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318876 Archived-At: --000000000000ed3e820617c22e7c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El s=C3=A1b., 4 de mayo de 2024 10:30 p. m., Po Lu esc= ribi=C3=B3: > Po Lu writes: > > > On Android, for instance, the relevant code exists in two functions > > defined in EmacsGC.java, prepareStipple and blitOpaqueStipple, which ar= e > > nothing akin to the X implementation it emulates. The same is true of > > haikuterm.c, haiku_draw_stipple_background, and BView_DrawBitmapTiled i= n > > 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-crea= tepatternbrush > > but please be careful not to use APIs introduced after the earliest > versions of MS-Windows we support, which I believe is Windows NT 4.0. > Thank you, i've read the documentation and i think it can also be useful, i will do some test for see the result. --000000000000ed3e820617c22e7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
El s=C3=A1b., 4 de mayo de 2024 10:30 p. m., Po Lu <luangru= o@yahoo.com> escribi=C3=B3:
= 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 a= re
> nothing akin to the X implementation it emulates.=C2=A0 The same is tr= ue of
> haikuterm.c, haiku_draw_stipple_background, and BView_DrawBitmapTiled = in
> haiku_draw_support.cc.

Perhaps "pattern brushes" are the tool for the job?

=C2=A0 https://learn.microsoft.com/en-us/windows/win32/api/wingdi/= nf-wingdi-createpatternbrush

but please be careful not to use APIs introduced after the earliest
versions of MS-Windows we support, which I believe is Windows NT 4.0.

Thank you, i've read the documentation and i think = it can also be useful, i will do some test for see the result.

--000000000000ed3e820617c22e7c--