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

DrawText: Invalid RECT?


DrawText: Invalid RECT?

Postby Layre5150 » Feb 16, 2004 @ 4:34pm

Greetings,

I am porting an engine to PPC and I have just a brief question. This is in regards to the "DrawText" function.

Basicially, I'm getting an error which translates to GDERR_INVALIDRECT. I presume that this is referring to the Font RECT's correct?

Right now, I am keeping things simple so I am using the default system font for now, I have made sure that the PNG file(s) are copied to the correct directory on the emulator (the same as all my other dll's + exe).

By looking in the "watch" window, I can see that the PNG file(s) are loaded correctly as the data within the member vars look correct.

So what could be causing this error?

I've made sure that the destination surface and the destination coordinates are correct. The same with the flags and so forth.

Here's how I am calling it:

DrawText( lpbb->lx , lpbb->ly , lpItem->sText, pDefaultFont, dwFlags, NULL, 0UL, NULL )

The 'pDefaultFont' is the return variable from 'GapiDisplay::GetSystemFont().

Any ideas?
Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby Layre5150 » Feb 16, 2004 @ 4:50pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby Johan » Feb 16, 2004 @ 5:07pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Layre5150 » Feb 16, 2004 @ 6:52pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby ppcStudios » Feb 16, 2004 @ 7:01pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

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


Postby Layre5150 » Feb 16, 2004 @ 7:02pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby Layre5150 » Feb 16, 2004 @ 7:12pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


Postby fzammetti » Feb 16, 2004 @ 7:15pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Layre5150 » Feb 16, 2004 @ 7:28pm

Layre5150
pm Member
 
Posts: 21
Joined: Feb 13, 2004 @ 5:17pm


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

cron