This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Surface Size


Surface Size

Postby jongjungbu » Mar 4, 2003 @ 11:10pm

User avatar
jongjungbu
Not JongJongBu
 
Posts: 3112
Joined: Jun 19, 2001 @ 4:22am
Location: USA


Postby ppcStudios » Mar 5, 2003 @ 12:41am

User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby ruis » Mar 5, 2003 @ 1:36am

User avatar
ruis
pm Member
 
Posts: 41
Joined: Nov 3, 2002 @ 5:00pm
Location: Sweden


Postby jongjungbu » Mar 5, 2003 @ 3:32am

User avatar
jongjungbu
Not JongJongBu
 
Posts: 3112
Joined: Jun 19, 2001 @ 4:22am
Location: USA


Postby ppcStudios » Mar 5, 2003 @ 5:45am

User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby jongjungbu » Mar 5, 2003 @ 6:56am

Hmm. Well I seem to have fixed my problem. It was not necessarily a memory size issue really after all. LOL. But rather two different problems of my own doing. One, the RECT specifying the src region wasn't being set BEFORE the BltFast call. So, usually it was a 0-sized RECT being copied.

Second, I was BltFasting a src region larger than the actual display. I didn't know this was an issue (clipping?) and maybe it's not (I remember it was in older DirectX SDKs)...but I had to specify a RECT equal to or smaller than the display. Using NULL only worked for src images smaller than the display.

Ok, so GapiDraw is runnin fine now. Too bad I get fatal exception crashes every time my program runs an fopen or fclose. :( Weird.

If it's not one thing it's another.

Thanks for the input/comments guys.


JJB
User avatar
jongjungbu
Not JongJongBu
 
Posts: 3112
Joined: Jun 19, 2001 @ 4:22am
Location: USA


Postby ppcStudios » Mar 5, 2003 @ 2:31pm

User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » Mar 5, 2003 @ 2:47pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby jongjungbu » Mar 5, 2003 @ 4:22pm

AAaah. That is very interesting. Hmm. Initially I had the images as files. But I have since loaded them as resources. Still notice some loading time, but I don't expect an instant effect from the image size in question on a PocketPC.

I am using 8-bit PNG at this point loaded as resource. Not what I originally started with, but at this point is what I'm using. Would that be my best bet for the least overhead in 1.04? I find the filesize of the PNG format to be highly acceptable without noticeably altering the image. No wonder you use that format in the samples. :)

JJB
User avatar
jongjungbu
Not JongJongBu
 
Posts: 3112
Joined: Jun 19, 2001 @ 4:22am
Location: USA


Postby Johan » Mar 5, 2003 @ 4:26pm

8-bit png should work fine..
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum