Re: Basic basicgraphics question
- From: Martin Bazley <martin.bazley@xxxxxxxxxxxxxxxx>
- Date: Tue, 11 Jan 2011 20:54:24 GMT
The following bytes were arranged on 11 Jan 2011 by John Greenwood :
RECTANGLE FILL 0,0,1279,1023
I get a rectangle, which is black regardless what the first GCOL number
is, filling the bottom left quarter of the screen and a small white
rectangle of 4x4 pixels looking at the screen through a magnifier.
What am I missing?
All drawing calls take OS units, not pixels, to avoid problems in
rectangular-pixel screen modes.
Most screen modes these days have an x and y eigen-factor of 1, which is
the value the number of pixels needs to be shifted left by to give a
value in OS units.
See OS_ReadModeVariable for more information.
tl;dr version: Multiply by 2.
--
__<^>__ Follow me on Twitter! --> http://twitter.com/swirlythingy
/ _ _ \ (Or, um, don't. It's a free country and all that.)
( ( |_| ) )
\_> <_/ ======================= Martin Bazley ==========================
.
- References:
- Basic basicgraphics question
- From: John Greenwood
- Basic basicgraphics question
- Prev by Date: Basic basicgraphics question
- Next by Date: Re: Unicode Characters on RISC OS 5
- Previous by thread: Basic basicgraphics question
- Next by thread: Re: Basic basicgraphics question
- Index(es):
Relevant Pages
|