Changes for the new webpage and bug fixes since 0.2.9.6
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@36 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
@@ -529,6 +529,27 @@ unsigned char *bmdataptr;
|
||||
}
|
||||
}
|
||||
|
||||
void CGraphics::drawBitmap2FG(int xa, int ya, int b)
|
||||
{
|
||||
int x,y;
|
||||
unsigned char *bmdataptr;
|
||||
|
||||
// for "b" arguments passed from GetBitmapNumberFromName(),
|
||||
// in case the specified name was not found
|
||||
if (b==-1) return;
|
||||
|
||||
bmdataptr = bitmaps[b].bmptr;
|
||||
for(y=0;y<bitmaps[b].ysize;y++)
|
||||
{
|
||||
for(x=0;x<bitmaps[b].xsize;x++)
|
||||
{
|
||||
g_pVideoDriver->setpixel((x+xa+scrollx_buf-130)&511,(y+ya+scrolly_buf-30)&511,*bmdataptr);
|
||||
bmdataptr++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int CGraphics::getBitmapNumberFromName(const char *bmname)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user