From: Eli Zaretskii <eliz@gnu.org>
To: Vitaly Takmazov <vitalyster@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Patch for Windows 8.1+ HiDPI support
Date: Wed, 13 May 2015 20:02:48 +0300 [thread overview]
Message-ID: <83mw18jtqf.fsf@gnu.org> (raw)
In-Reply-To: <CAF+0zPC94GtMbcL6vchvfadxo_8=eEXE-OoAuzrzp_bKDGOLTw@mail.gmail.com>
> Date: Wed, 13 May 2015 10:45:53 +0300
> From: Vitaly Takmazov <vitalyster@gmail.com>
>
> Emacs works perfectly on HiDPI monitor, I have patched ony two minor things:
> 1) declare dpi-awareness in manifest files, so Windows will not enable
> "compatibility mode" and fonts now look crisp by default
> 2) remove unneeded OFN_ENABLEHOOK flag passed to GetOpenFileName, which allow
> OS to show modern "open file" dialog. Legacy dialog not support HiDPI mode and
> show too small icons.
> Let me know if I miss something and/or select wrong place to report it
Thanks.
> diff --git a/nt/emacs-x64.manifest b/nt/emacs-x64.manifest
> index 5434e29..3cf56dd 100644
> --- a/nt/emacs-x64.manifest
> +++ b/nt/emacs-x64.manifest
> @@ -1,5 +1,5 @@
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> -<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
> +<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
Did you verify that these attributes don't produce any problems on
older versions of Windows?
> --- a/src/w32fns.c
> +++ b/src/w32fns.c
> @@ -6680,7 +6680,7 @@ value of DIR as in previous invocations; this is standard Windows behavior. */)
> #endif
> file_details_w->nFilterIndex = NILP (only_dir_p) ? 1 : 2;
> file_details_w->Flags = (OFN_HIDEREADONLY | OFN_NOCHANGEDIR
> - | OFN_EXPLORER | OFN_ENABLEHOOK);
> + | OFN_EXPLORER);
I don't see how can we remove this flag unconditionally, since we do
use a hook function, and for a good reason, AFAIR. Won't removing the
flag break the functionality for which we use the callback function
there? Did you try selecting "Directories" in the file chooser?
next prev parent reply other threads:[~2015-05-13 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 7:45 Patch for Windows 8.1+ HiDPI support Vitaly Takmazov
2015-05-13 17:02 ` Eli Zaretskii [this message]
[not found] <CADvwsn46ucV0TRTpKBwtWW_6saJfu=7Z4bHk6Q+OQL1QV5jmzg@mail.gmail.com>
2015-05-30 10:36 ` Eli Zaretskii
2015-06-02 13:52 ` Fabrice Popineau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mw18jtqf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=vitalyster@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.