[changeset] Missing ScreenSize & ScreenPixelsPerInch properties
Michael Goffioul
michael.goffioul at gmail.com
Thu Jan 22 08:41:25 CST 2009
On Thu, Jan 22, 2009 at 2:13 PM, John W. Eaton <jwe at octave.org> 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.
More information about the Octave-maintainers
mailing list