From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Windows drawterm screen size
Date: Tue, 3 Nov 2015 16:40:19 -0800 [thread overview]
Message-ID: <CAJSxfmJWn+epx8V2fqry3F82WazHWv-A35bfA9Biy_yTxxRzdQ@mail.gmail.com> (raw)
In-Reply-To: <f3a6fb82e031404b6c149c41af01a131@9srv.net>
[-- Attachment #1: Type: text/plain, Size: 814 bytes --]
I don't have a windows box handy; if I did I would try:
in gui-win32/screen.c change the calls to GetDeviceCaps
to SystemParametersInfo with SPI_GETWORKAREA parameter. something like:
RECT ds; // size of work area in primary display
if( SystemParametersInfo(SPI_GETWORKAREA, 0, &ds, 0) ){
dx = ds.right - ds.left;
dy = ds.bottom - ds.top;
}
FYI:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx
On Tue, Nov 3, 2015 at 7:51 AM, <a@9srv.net> wrote:
> The Windows drawterm is pretty naive about screen
> sizes: it doesn't take into account window size,
> the stupid title bar, or multiple monitors. Inferno
> has dealt with at least some of this. Does anyone
> have a drawterm that deals with this better? Or has
> anyone tried and run into issues?
>
>
[-- Attachment #2: Type: text/html, Size: 1353 bytes --]
next prev parent reply other threads:[~2015-11-04 0:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 15:51 a
2015-11-03 16:00 ` Jacob Todd
2015-11-04 0:40 ` Skip Tavakkolian [this message]
2015-11-03 23:22 mveety
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=CAJSxfmJWn+epx8V2fqry3F82WazHWv-A35bfA9Biy_yTxxRzdQ@mail.gmail.com \
--to=skip.tavakkolian@gmail.com \
--cc=9fans@9fans.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).