Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Drawing: HiRes+ screen vs. LowRes

Drawing: HiRes+ screen vs. LowRes

Discuss OrbForms Designer and PocketC Architect

Postby FrankG on Tue Mar 11, 2003 11:27 am

With apologies to those who might not appreciate the game of baseball:

I'm running into some seemingly inaccurate drawing when it's done on a Clie HiRes+ screen vs. on a Palm 160x160 screen. Because my usual baseball scoring program is incompatible with OS5, I figured I'd just write one of my own.

At this URL are screen shots of the score sheet view of the game as shown on the Clie NX simulator and the Palm emulator running a IIIc ROM.

http://marriageyes.home.mindspring.com/ ... nshots.jpg

On the Palm screen (right), the lines representing the runner's progress around the base form nicely connected lines. On the Clie screen (left), the lines are disjointed and don't connect well. The same code (shown below) is producing the lines in both cases. Any clues why this is happening? It's as if the translation from HiRes to Low Res coordinates is off here and there.

The drawing code:
if (wsRec.base[bhome].oo == 1) <br /> dr.line(clrFG,xm+7,ym+10,xm+11,ym+6); // Draw Home to 1st<br /><br /> if (wsRec.base[bfirst].oo == 1)<br /> dr.line(clrFG,xm+11,ym+6,xm+7,ym+2); // Draw 1st to 2nd<br /><br /> if (wsRec.base[bsecond].oo == 1)<br /> dr.line(clrFG,xm+7,ym+2,xm+3,ym+6); // Draw 2nd to 3rd<br /><br /> if (wsRec.base[bthird].oo == 1)<br /> dr.line(clrFG,xm+3,ym+6,xm+7,ym+10); // Draw 3rd to home<br /><br />


Thanks,
Frank

FrankG
 
Posts: 210
Joined: Thu Jan 23, 2003 7:58 pm

Postby jstadolnik on Tue Mar 11, 2003 12:42 pm

One of the bizarre artifacts of drawing lines on hi-res sony devices (pre-OS5) in low resolution mode is that diagnal lines are 1 pixel wide while horizontal or vertical lines are 2 pixels wide. Yet in drawing diagnals in low-res mode you only have access to a 160 by 160 coordinate scheme. That's why your lines aren't starting and ending where you really want them.

The only solution is be to utilize the sony high-res drawing API, which can currently only be done through an add-in (or PocketC :)...). Though I think built-in high-res support for Orbforms is coming soon?

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby FrankG on Tue Mar 11, 2003 2:09 pm

Joe,

Thank you for your response. I guess it's something I can live with for awhile. I <b>do</b> need to start learning how to do add ins. PocketC looks like it'd be fun but for now I still want the big screen, big key board, and no run-time....

Thanks again,
Frank
FrankG
 
Posts: 210
Joined: Thu Jan 23, 2003 7:58 pm

Postby jstadolnik on Tue Mar 11, 2003 2:16 pm

The desktop edition of PocketC allows you to build stand-alone apps just like OrbForms does (with an embedded runtime). The major difference (though there are many) is that you don't have the nice integrated GUI layout panel on the desktop... but you can code on the road too.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 2 guests

cron