Page 1 of 1

DrawText: Invalid RECT?

PostPosted: Feb 16, 2004 @ 4:34pm
by Layre5150
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?

PostPosted: Feb 16, 2004 @ 4:50pm
by Layre5150

PostPosted: Feb 16, 2004 @ 5:07pm
by Johan

PostPosted: Feb 16, 2004 @ 6:52pm
by Layre5150

PostPosted: Feb 16, 2004 @ 7:01pm
by ppcStudios

PostPosted: Feb 16, 2004 @ 7:02pm
by Layre5150

PostPosted: Feb 16, 2004 @ 7:12pm
by Layre5150

PostPosted: Feb 16, 2004 @ 7:15pm
by fzammetti

PostPosted: Feb 16, 2004 @ 7:28pm
by Layre5150