[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-mm-width return value off on Windows
From: |
Ralf Angeli |
Subject: |
Re: display-mm-width return value off on Windows |
Date: |
Tue, 11 Jul 2006 20:43:11 +0200 |
* Eli Zaretskii (2006-07-09) writes:
>> From: Ralf Angeli <address@hidden>
>>
>> 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.
Here are change log entries and patches to achieve that:
2006-07-11 Ralf Angeli <address@hidden>
* frame.el (display-mm-height): New variable.
(display-mm-height): Use it.
(display-mm-width): New variable.
(display-mm-width): Use it.
frame.el.patch
Description: Text Data
2006-07-11 Ralf Angeli <address@hidden>
* w32fns.c (Fx_display_mm_height, Fx_display_mm_width): Calculate
size of display by means of size in pixels and number of pixels
per inch.
w32fns.c.patch
Description: Text Data
--
Ralf
- Re: display-mm-width return value off on Windows, (continued)
- Re: display-mm-width return value off on Windows, Eli Zaretskii, 2006/07/09
- Re: display-mm-width return value off on Windows, Kim F. Storm, 2006/07/10
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/10
- Re: display-mm-width return value off on Windows, Jason Rumney, 2006/07/10
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/10
- Re: display-mm-width return value off on Windows, Jason Rumney, 2006/07/10
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/11
- Re: display-mm-width return value off on Windows, Eli Zaretskii, 2006/07/10
- Re: display-mm-width return value off on Windows, Kim F. Storm, 2006/07/10
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/11
- Re: display-mm-width return value off on Windows,
Ralf Angeli <=
- Re: display-mm-width return value off on Windows, Kim F. Storm, 2006/07/12
- Re: display-mm-width return value off on Windows, Richard Stallman, 2006/07/12
- Re: display-mm-width return value off on Windows, Ralf Angeli, 2006/07/13
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/13
- Re: display-mm-width return value off on Windows, Richard Stallman, 2006/07/14
- Re: display-mm-width return value off on Windows, Stefan Monnier, 2006/07/14
- Re: display-mm-width return value off on Windows, David Kastrup, 2006/07/14
- Re: display-mm-width return value off on Windows, Stefan Monnier, 2006/07/14
- Re: display-mm-width return value off on Windows, Ralf Angeli, 2006/07/15
- Re: display-mm-width return value off on Windows, Ralf Angeli, 2006/07/16