Bug 1499 : screen variable doesn't exist
Last modified: 2010-03-04 05:55




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
TomC
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-03-02 14:11
When testing existing sketches I needed to remove references to 'screen'.

I wasn't sure if this was an official Processing API member or just a
leftover convenience variable, but I see it listed here:
http://processing.org/reference/screen.html so I'm reporting it as a bug :)
Additional Comment #1 From fry 2010-03-04 05:23
yeah, it's screenW and screenH for android (in 0178.. it's not in the
current release). we shouldn't have documented it in the reference on the
desktop version, and i'll be added screenW/H to the desktop release and
marking 'screen' as deprecated. i wouldn't otherwise, but the
java.awt.Dimension class isn't available in android, and using an object
like that isn't in line w/ the rest of the api even for the desktop version.
Additional Comment #2 From fry 2010-03-04 05:24
oops, that's screenWidth and screenHeight. tho maybe screenW/H is better
since it's more like mouseX/Y.
Additional Comment #3 From fry 2010-03-04 05:55
in fact, i'm going with screenW and screenH, and unlike 'screen', they'll
also be static like they should be. so i've added them to both releases of
core for 0178.