[changeset] Missing ScreenSize & ScreenPixelsPerInch properties

John W. Eaton jwe at octave.org
Thu Jan 22 09:08:27 CST 2009


On 22-Jan-2009, Michael Goffioul wrote:

| 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.

Does the following program do the right thing?

Thanks,

jwe

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foo.cc
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090122/d0c97b96/attachment-0001.ksh 


More information about the Octave-maintainers mailing list