octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [changeset] Missing ScreenSize & ScreenPixelsPerInch properties


From: Michael Goffioul
Subject: Re: [changeset] Missing ScreenSize & ScreenPixelsPerInch properties
Date: Thu, 22 Jan 2009 14:41:25 +0000

On Thu, Jan 22, 2009 at 2:13 PM, John W. Eaton <address@hidden> wrote:
> On 22-Jan-2009, Shai Ayal wrote:
>
> | OK. But I don't know how hard it will be to make this cross platform.
> | We might try to "steal" some code from fltk to discover the
> | platform.
>
> Why?  This seems to be a compile-time thing.  We can discover if the
> build system has X11, or is Windows, or is OS X, and then we just need
> to know how to get the screen characteristics on those systems.  I
> provided the example code for X11.  Now someone else needs to do the
> same for Windows and OS X.

Under Windows, it would be done using GetSystemMetrics and
GetDeviceCaps functions.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]