GNU bug report logs -
#7296
display-pixel-height not enough
Previous Next
Full log
Message #20 received at 7296 <at> debbugs.gnu.org (full text, mbox):
On Fri, Oct 29, 2010 at 9:59 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Thu, 28 Oct 2010 22:39:35 +0200
>> Cc: 7296 <at> debbugs.gnu.org
>>
>> > Wouldn't it make more sense for display-pixel-height/width to return
>> > the height available for display?
>>
>> Probably. But there are perhaps also situation when you actually want
>> to get the dimension of the whole display. Perhaps not at the moment,
>> but with enhanced frame handling there could be.
>
> Patches are welcome to implement that. Or at least if someone could
> explain how to find the dimensions of the unusable part, then someone
> else could write the code with minimal effort.
You can get the working area of the display by either calling
SystemParametersInfo with SPI_GETWORKAREA (for default monitor) or
GetMonitorInfo. See
http://msdn.microsoft.com/en-us/library/ms724947(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/dd144901(v=VS.85).aspx
The functions to change are x_display_pixel_height (and dito width) in w32term.c
This bug report was last modified 10 years and 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.