Started to add PCX routines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5552 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -85,6 +85,18 @@ void FreeBitmap (Bitmap* B)
|
||||
|
||||
|
||||
|
||||
int ValidBitmapSize (unsigned Width, unsigned Height)
|
||||
/* Return true if this is a valid size for a bitmap */
|
||||
{
|
||||
/* Calculate the size of the bitmap in pixels */
|
||||
unsigned long Size = (unsigned long) Width * Height;
|
||||
|
||||
/* Check the size */
|
||||
return (Size > 0 && Size <= BM_MAX_SIZE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Color GetPixelColor (const Bitmap* B, unsigned X, unsigned Y)
|
||||
/* Get the color for a given pixel. For indexed bitmaps, the palette entry
|
||||
* is returned.
|
||||
|
||||
Reference in New Issue
Block a user