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: John W. Eaton
Subject: Re: [changeset] Missing ScreenSize & ScreenPixelsPerInch properties
Date: Mon, 26 Jan 2009 23:07:39 -0500

On 25-Jan-2009, Thomas Treichl wrote:

| Thomas Treichl schrieb:
| >> Build time option?
| > 
| > Good question, and my last question to John here before I prepare a 
| > changeset tomorrow: Do we need a configure test to check for the LDFLAGS 
| > '-framework Carbon' or can I just add this to the '*-*-darwin*)' flags 
| > of the canonical_host_system in configure.in?
| 
| Hi,
| 
| I've adjusted display.cc and I'd like to introduce the m4 macro 
| "OCTAVE_HAVE_FRAMEWORK". This script allows me to check for the compiler 
option 
| "-framework NAME" and take further arguments $2 and $3 as file prologue and 
file 
| body if some deeper tests should be performed. However, here is my output 
from 
| the ./configure run
| 
|    checking whether ld accepts -framework Carbon... yes
|    configure: adding -Wl,-framework -Wl,Carbon to LDFLAGS
| 
| Compilation is successful and I also checked if the part 
HAVE_FRAMEWORK_CARBON 
| in display.cc is compiled (and not the X11 part). The output before was
| 
|    bash$ octave --quiet --eval 'get (0, "ScreenSize")'
|    ans = 0   0   0   0
| 
| The correct new output is
| 
|    bash$ octave --quiet --eval 'get (0, "ScreenSize")'
|    ans = 1      1   1680   1050
| 
| Ben can you please check if this works on your 10.5 system? If it works, can 
it 
| be included into the sources? Thanks,

I applied this patch with a few small changes.

Thanks,

jwe


reply via email to

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