From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Stipples support in MS-Windows port Date: Sun, 05 May 2024 12:04:56 +0800 Message-ID: <87a5l49a53.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Elijah G Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 05 06:06:21 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 1s3T8n-0008AG-9G for ged-emacs-devel@m.gmane-mx.org; Sun, 05 May 2024 06:06:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3T80-00016H-KQ; Sun, 05 May 2024 00:05:32 -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 1s3T7x-00015C-Ey for emacs-devel@gnu.org; Sun, 05 May 2024 00:05:31 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3T7f-0000SI-WE for emacs-devel@gnu.org; Sun, 05 May 2024 00:05:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1714881908; bh=fLAgfXXEGFTkl78Jlt8z8OgaXxGJFkCvOUoXo2XbgzY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=gZldxVeWUPj6fu8EomEMmz4KIHCjoeXqP5vMy/aYIXH3ytIO0I5KV1gwVoPIE7ZbBmbhnfkShH3hSKMo5SsuZ0Es6/SBMH0qsFHytBXFnR98CcQVJupM1WAzgMvmr1T3YsxLVALlU5S51hM075pIH6EK9Z1gri/JtIpZTgj49tlu80U4H9pON/jLBdJMcUPxKjmssfemZlDDO1/2bO1Ay5VVRLYbQJvo/ZkktrD9F8OWjCoWl/yOyYbq2hZhXleT4efBK10FZY3TECzH+fKzUA2e/F/yrV3ut6Rl5VePh2NnTMvRsVkv7v0RjUirzhoJD0swugGrlOGpC8IjTf2eUw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1714881908; bh=tru0KLofceGCgkBJqOuxhpFpPFXY9oqcReAPpnjcOo/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=AJFPCO7xvecEVg61tMFtHKrM5s6BZP6jL6VPKmOB1V8JbrBchiGOylJX3IFH/0XDsdJOhgLhIses8DYrwoAD8QWwt1huWrMSew58blGmEkuOr2im4X0h8/PCPFyMqadVW1lNcF7HqOQtp1lWFgX76YDpT/46JX8g+Nf+QeNw9cAsW1sRawdej+9m7TyA4uxbaUVevnop6Wxsf6FWigGLNxVk7sYKunyHyPV86+t1ACxAUQ1iTTB8L0WkSArq2w77YTdOaDxUj6i8UdaTOhtwuyASDS3dSbmkJE3xKuPotuN4L2oFgCnddakWz7evxZBZv04+R7Tf5jelWpIT/+TBBQ== X-YMail-OSG: BqU5kwsVM1nQyug6w5sg5WSoygy94AsWmw.h5gcOIzQGH25A5S1yqw6EemsbLWs cwC7JHopll9OhqmgMQB2S1O8msEooSMMFSuk3hpo.HgmJGRBxXgg9Lex5VsPuDPixzwuQ5rLUC2l NbEiOUhjgodgVjoRR7bI51jrOkEdqrgxSBmNZS4Z.mAvq_BS7r.fX.dHwPfz_7esix51mUKCfVLG YlJ3hvsJ0fusc4wps2bk8nYSTeg87hhOzFz0i7MGwj6yNpJGTHWkK1lVtD2.alv3CNYgtsA3FiER w9BRUFowxIwioePDU1olTpObVRuiMvhFiW_9zDGpI3hPGSl42_AozYRQXcyWEGHjjAj1fTC_bivf I6eEafrD_RryBWowAesvs3d7.DYbjWU1kGbmSo4gvj1ZnOD8j_qEREueXhhgV_ekB0l3s6RiRBEV V_Cxty3ISomQVndrUhmZHSlSJ_QZU2PIjaxnFNdzVen0EyArD7YFuvvuta8OGoD8RDaOfvPzeNvP pzxQpuG.ThMy.a192LgR8vafsjjNgg3G.5vy0hJQsiZqA3Hpz9zumy8Y6pnqJuN5heVpPtAsvDl8 obtEbIaEpxfJgTWG5dibpqVyI1tnqm1XUg0WPGtn_JZJplvgDs5pFxJZSDE0ei963x5w7MLDgNMU zapoJf.cm4nzrQ0I_XBjZyJD_IhI2NMK7yl2KRL0kNVY_qMUaJV7C7_lzPh0tptPS41rCWjyPL2a 8G8QzIhsNI5hxB3IAd.ORH_ZceiuSwAg4PYKpxPqAccDFM.tW_hfjzAWSFDFiDKj.UPcluk4TF65 bUa9SJH3qu5MUiQh6Tb_BWScSiJsmywuvDqT0OmKLm X-Sonic-MF: X-Sonic-ID: 31e4ea25-890c-4785-bddb-fd87b765d52c Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sun, 5 May 2024 04:05:08 +0000 Original-Received: by hermes--production-sg3-6f9f87bd85-np5nc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID eb3073543f898765ad44ac3d162c66ca; Sun, 05 May 2024 04:05:04 +0000 (UTC) In-Reply-To: (Elijah G.'s message of "Sat, 4 May 2024 21:43:51 -0600") X-Mailer: WebService/1.1.22256 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, 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:318763 Archived-At: Elijah G 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.