From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: display-mm-width return value off on Windows Date: Sun, 09 Jul 2006 21:37:46 +0300 Message-ID: References: <87slldpd8s.fsf@neutrino.caeruleus.net> <44AFB1E1.20906@student.lu.se> <8764i7kywu.fsf@neutrino.caeruleus.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1152470288 6893 80.91.229.2 (9 Jul 2006 18:38:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2006 18:38:08 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 20:38:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FzeAN-0007rw-Su for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2006 20:38:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FzeAN-0007ot-Fw for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2006 14:38:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FzeAA-0007oF-R7 for emacs-devel@gnu.org; Sun, 09 Jul 2006 14:37:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FzeA8-0007nt-Tb for emacs-devel@gnu.org; Sun, 09 Jul 2006 14:37:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FzeA8-0007nq-PU for emacs-devel@gnu.org; Sun, 09 Jul 2006 14:37:48 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FzeB1-0003nu-Ty; Sun, 09 Jul 2006 14:38:44 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-36-78.inter.net.il [80.230.36.78]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EBN84938 (AUTH halo1); Sun, 9 Jul 2006 21:37:43 +0300 (IDT) Original-To: Ralf Angeli In-reply-to: <8764i7kywu.fsf@neutrino.caeruleus.net> (message from Ralf Angeli on Sun, 09 Jul 2006 09:41:53 +0200) 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:56855 Archived-At: > From: Ralf Angeli > Cc: Lennart Borgman , Eli Zaretskii , emacs-devel@gnu.org > Date: Sun, 09 Jul 2006 09:41:53 +0200 > > If `GetDeviceCaps (hdc, HORSIZE)' always assumes a fixed DPI value > that would explain why the values are so inaccurate especially on > displays with a high DPI value. In that case I think it makes sense > to use the DPI value when calculating the size (as my patch does) and > assume that the user set it to a value matching her monitor. > > As a last resort we could provide user options (in Emacs) for setting > the correct size of the screen which will be used as return values for > `display-mm-{width,height}'. Sounds like a good plan to me.