From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: x-display-pixel-width/height inconsistency Date: Thu, 21 Mar 2013 05:27:42 +0400 Message-ID: <87sj3po835.fsf@yandex.ru> References: <87vc8nyoat.fsf@yandex.ru> <8738vrq67p.fsf@yandex.ru> <87vc8metkw.fsf@yandex.ru> <8738vqyxnt.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363829275 2258 80.91.229.3 (21 Mar 2013 01:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 01:27:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 02:28:21 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIUIn-0008Kw-LL for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 02:28:21 +0100 Original-Received: from localhost ([::1]:58041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIUIQ-0002Ti-8U for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2013 21:27:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIUIJ-0002TZ-Nw for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:27:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIUIF-0001oW-MN for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:27:51 -0400 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:62481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIUIF-0001oM-DT for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:27:47 -0400 Original-Received: by mail-la0-f47.google.com with SMTP id fj20so4201865lab.34 for ; Wed, 20 Mar 2013 18:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type:x-antivirus :x-antivirus-status; bh=5QRLejiZmU1+SzzYFPc2GKxyMLB6q30pZjZT4+6NzAs=; b=S/ErficwUCJQVkjnpPfU1VWjJZB+mLKMhsYLksnUO+Q4LmrennA9F2dwlO9pmDr1gu jYvmbJcFyf+O24fkdEqbazujs3C86STdMvSQhctzrJY4XP1AS6dUFVtLr+Tedrucn/pl iPbLvnPsUMsLTwz4AdCCI9FgDMgkXpXX3X7VljwYgXJ31qnEZWqiuAeNc3G7G6Zgu3qf HtIv8gdrbkqf1xq8I/U4kisHtEFxUzNMtIhdBOHkloFjlgaHPgU3VCT5VYijhFPvnJzi hCTZBJWYybwgx3tADfq9rYal5Da1gal1ahHY1SXZEkEaA1WCII0mwUTpa+xrwUpJboFZ esKA== X-Received: by 10.112.39.10 with SMTP id l10mr10693476lbk.79.1363829266122; Wed, 20 Mar 2013 18:27:46 -0700 (PDT) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id m6sm1297541lbm.10.2013.03.20.18.27.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 18:27:44 -0700 (PDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Thu, 21 Mar 2013 08:28:33 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Antivirus: avast! (VPS 130320-1, 21.03.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158014 Archived-At: YAMAMOTO Mitsuharu writes: >>>>>> On Wed, 20 Mar 2013 18:05:10 +0400, Dmitry Gutov said: > >>> What happens if you replace `CreateDC ("DISPLAY", NULL, NULL, >>> NULL)' in the patch with `CreateDC (TEXT ("DISPLAY"), NULL, NULL, >>> NULL)' ? > >> That doesn't seem to change anything, either. > > Hmm, what about the following one? Still the same. > And could someone who is familiar with the W32 (or NS) port help us > make these functions consistent with the X11 version? Otherwise elisp > programs that use these common functions (unconsciously) relying on > platform-specific behavior will not work as intended on other > platforms. > > (Actually, some users have sent me "bug reports" that the behavior of > display-pixel-width/height on the Mac port is "wrong" for the reason > that they do not return the same values as the NS port, whereas those > in the Mac port behave consistently with those in X11.) Aside from it being X11 behavior, why do you consider it the "right" one? I see how I could use one monitor's dimensions (to make Emacs take full screen, or half width, etc), but what use is the "total size"? My monitors are of different size, you couldn't make Emacs fully maximized to both of them, even if you tried.