From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: [sdl.web@gmail.com: Re: problem with transparent PNG image display] Date: Wed, 01 Aug 2007 23:43:35 +0900 Message-ID: <87vebze2nc.fsf@catnip.gol.com> References: <46A527C9.7040401@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185979447 29129 80.91.229.12 (1 Aug 2007 14:44:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 14:44:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 16:44:00 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IGFQP-0005VA-4s for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 16:43:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGFQO-0007bz-N8 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 10:43:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGFQL-0007ZS-H4 for emacs-devel@gnu.org; Wed, 01 Aug 2007 10:43:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGFQL-0007Z6-2K for emacs-devel@gnu.org; Wed, 01 Aug 2007 10:43:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGFQK-0007Z3-Sg for emacs-devel@gnu.org; Wed, 01 Aug 2007 10:43:40 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IGFQI-0006Dc-Mu; Wed, 01 Aug 2007 10:43:39 -0400 Original-Received: from 203-216-96-074.dsl.gol.ne.jp ([203.216.96.74] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1IGFQG-0002AX-Eg; Wed, 01 Aug 2007 23:43:36 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 18F683015; Wed, 1 Aug 2007 23:43:35 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Richard Stallman's message of "Wed\, 01 Aug 2007 10\:30\:38 -0400") Original-Lines: 22 X-Abuse-Complaints: abuse@gol.com X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75910 Archived-At: Richard Stallman writes: > The cache could record what background color was used for rendering. > Then, on displaying the image again, if the desired background is > different, that could cause a cache-mismatch, which would cause > re-rendering. I thought it already did this (in image.c:search_image_cache): 2007-06-13 YAMAMOTO Mitsuharu * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members frame_foreground and frame_background. * image.c (lookup_image): Save frame foreground and background colors. (search_image_cache): Check if saved and current frame colors match. -Miles -- Americans are broad-minded people. They'll accept the fact that a person can be an alcoholic, a dope fiend, a wife beater, and even a newspaperman, but if a man doesn't drive, there is something wrong with him. -- Art Buchwald