Page 1 of 1

PostPosted: Fri Jun 20, 2003 7:28 am
by Jack
Wotcha, folks.

I'm brand new here and am just beginning to experiment with PocketC - LUVVIT !

However, I'm having a wee problem with the screen resolution thing.

Can anyone tell me why the screen resolution changes halfway through this pattern code:

Code: Select all
int edge;


while (edge>1){
  line (1,159,0,edge,159);

//Screen res seems to change from 160x160 to 320x320 here 


while (edge<160){


I'm not sure if this is bad (N)etiquette, but I posted my query on the Brighthand forums before I found this forum. If I might post a link to my problem (rather than type the whole thing out again), I'll promise not to do it again, and refer all my future PocketC problems to this page. ... post193924

Thanks in advance.


PostPosted: Fri Jun 20, 2003 12:03 pm
by FrankG

Does it have anything to do with the 2nd line() call having -159 for y2? Since line draws point to point rather than point to offset, I'm not sure what drawing to the specific point (x,-159) will do to the line; it might simply be cropped off the border of the screen.

I didn't see the change to HiRes as you reported; that might have to do with me using the simulator vs. handheld you're using but try not drawing off the screen to see if anything changes.

Also: your example highlights that PocketC doesn't support the "+=" or "-=" operators? I didn't know that! I see in the language doc that they aren't. ;(

Good luck with it,


PostPosted: Fri Jun 20, 2003 2:06 pm
by Jack
Of course !!!!

Thanks, Frank.

Blimey, that minus stuff harkens back to my old Sinclair ZX Spectrum programming days - that was directional, not Point to Point as the Palm is.

I simply thought it was 320x320 coz it only drew half of it !

Cheers, mate.