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:
Colin Snover 2016-06-21 16:00:05 -05:00
parent 521d2e299f
commit d6d0e00dc5
4 changed files with 21 additions and 15 deletions

View file

@ -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),