SCI32: Expose a draw buffer on BitmapResource objects
Most of the time, we get a bitmap to draw on it. Exposing a buffer avoids consumers having to create their own all the time, and encourages use of common drawing code exposed by the buffer.
This commit is contained in:
parent
521d2e299f
commit
d6d0e00dc5
4 changed files with 21 additions and 15 deletions
|
@ -191,6 +191,12 @@ struct Buffer : public Graphics::Surface {
|
|||
uint16 scriptWidth;
|
||||
uint16 scriptHeight;
|
||||
|
||||
Buffer() :
|
||||
screenWidth(0),
|
||||
screenHeight(0),
|
||||
scriptWidth(320),
|
||||
scriptHeight(200) {}
|
||||
|
||||
Buffer(const uint16 width, const uint16 height, uint8 *const pix) :
|
||||
screenWidth(width),
|
||||
screenHeight(height),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue