cImage Surface
This commit is contained in:
@@ -197,11 +197,21 @@ const unsigned long int cVideo::getHeight() const
|
||||
return m_height;
|
||||
}
|
||||
|
||||
const unsigned long int cVideo::getColour() const
|
||||
const unsigned long int cVideo::getColourDepth() const
|
||||
{
|
||||
return m_colour;
|
||||
}
|
||||
|
||||
const unsigned long int cVideo::getPitch() const
|
||||
{
|
||||
unsigned long int rtn = 0;
|
||||
if (cVideo::getColourDepth() == 32)
|
||||
rtn = 4; // 4 bytes per pixel
|
||||
else
|
||||
rtn = 3;
|
||||
return rtn;
|
||||
}
|
||||
|
||||
const cString cVideo::getCaption() const
|
||||
{
|
||||
cString rtn = "";
|
||||
|
||||
Reference in New Issue
Block a user