Page 1 of 1

PostPosted: Fri Jan 03, 2003 7:53 pm
by md_lasalle
This is my code

#define title 10

SetDrawBuf(1); //write to scratch buffer 1
CustomBuf(1,125,42); //the bitmap that i'll load is 125 x 42
CopyBuf(0,1);//Copy the scratch buffer to the display buffer
when i do this the screen is all fucked up

PostPosted: Fri Jan 03, 2003 8:16 pm
by jstadolnik
The main display buffer is 160x160, while your custom buffer is smaller. As such CopyBuf will not work. Use CopyRect to do this.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">when i do this the screen is all fucked up
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

This is an "all ages" forum, you know? There are kids lurking.

Also, you keep posting to the wrong forum. This is the "knowledge base" intended for how-tos and examples, not for general questions. Use the developer forum instead. There's also a PToolbox specific forum.


The PToolboxLib guy.

PostPosted: Fri Jan 03, 2003 9:14 pm
by md_lasalle
Ok no problem...