From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Stipples and scroll optimizations Date: Sun, 08 May 2022 10:30:11 +0300 Message-ID: <83ilqgwkfw.fsf@gnu.org> References: <87a6bs5w05.fsf.ref@yahoo.com> <87a6bs5w05.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4773"; 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 Sun May 08 09:32:00 2022 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 1nnbOa-00017a-4m for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 09:32:00 +0200 Original-Received: from localhost ([::1]:33762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnbOY-0002uE-FH for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 03:31:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnbMy-0001o2-K7 for emacs-devel@gnu.org; Sun, 08 May 2022 03:30:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnbMy-000053-A7; Sun, 08 May 2022 03:30:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TwasXInS8wEtzzltFUey5iCGti8Pww1EpnmODn6mDy8=; b=cP4FcM+nGbM+ fN7vxLJ0YWCjcX8udxzloCQzf6CBHs4rmBaIdM5zrlg7BnjKlZTy+jkzPKydEyodFqWi5h8z68fB7 iH50uOgdXQJztOxt/LiO0pz1HMAU9E78EBQdHyw4gWE3P07WS+6tWwEc7KRWMFj67fVtt5LFkJcS5 rgER0HN9su1mQFxtr3tre4rqHzDM1M03whq9PKJPhuF+8A9lo9YTKvgdU/LDL1MesRKhl5NoBNX96 ElWLRXRIXWYgLpHzts94Tk9TcthdIQh3mr8DGbRnIGK3VSmGtnLRb1RNePcf8pOzMN/ngATJHgi1u QJSTZP/mTBrDoh99O7xUpw==; Original-Received: from [87.69.77.57] (port=3733 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnbMx-0005ry-HG; Sun, 08 May 2022 03:30:19 -0400 In-Reply-To: <87a6bs5w05.fsf@yahoo.com> (message from Po Lu on Sun, 08 May 2022 15:22:34 +0800) 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" Xref: news.gmane.io gmane.emacs.devel:289449 Archived-At: > From: Po Lu > Date: Sun, 08 May 2022 15:22:34 +0800 > > When a glyph with a stipple background is displayed in the scrolled area > of the screen, the optimization in `scrolling_window' should not be > performed. This is because stipples are "tiled" across the screen from > a constant origin, so the display of the stipple might not be correct > after it is copied to a different part of the frame. > > That problem can easily be seen by setting the stipple of the default > face to `dimple1' and scrolling a little. > > WDYT about such a change? If using scrolling_window in this case causes incorrect display, then scrolling_window should be disabled. But how would you know, in update_window or its subroutines, that this is the case?