PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can't use CRect

It's extremely likely to be me being thick :roll: , but when I try to use the new CRect I get an "Undeclared Identifier" error.

i.e
Code:
SetClipper(CRECT(0,50,240,320));


Am I supposed to #include the GapiDrawExtension.h myself somewhere?

Or am I not using this in the correct/best way?

Tone.
:) try "CRect" - it's case sensitive. Also, don't forget to include the file "GapiDrawExtension.h"...
Thanks for that :P

I had only typed CRect in upper case in the code snippet (d'oh), the bit I was getting wrong was I assumed GapiDrawExtension.h was already included as part of GapiDraw itself, and when I did try to #include it I added it to GapiDraw.h in the hope it would then work for all my files.

Thanks again for the help. :lol: