DREAMWEB: 'multiput' and 'multiget' get signatures

This commit is contained in:
Bertrand Augereau 2011-07-23 19:24:35 +02:00
parent 0066e4007a
commit a58e2bea08
2 changed files with 10 additions and 4 deletions

View File

@ -36,8 +36,10 @@ Common::String getFilename(Context &context) {
}
void DreamGenContext::multiget() {
unsigned w = (uint8)cl, h = (uint8)ch;
unsigned x = (uint16)di, y = (uint16)bx;
multiget(di, bx, cl, ch);
}
void DreamGenContext::multiget(uint16 x, uint16 y, uint8 w, uint8 h) {
unsigned src = x + y * kScreenwidth;
unsigned dst = (uint16)si;
es = ds;
@ -58,8 +60,10 @@ void DreamGenContext::multiget() {
}
void DreamGenContext::multiput() {
unsigned w = (uint8)cl, h = (uint8)ch;
unsigned x = (uint16)di, y = (uint16)bx;
multiput(di, bx, cl, ch);
}
void DreamGenContext::multiput(uint16 x, uint16 y, uint8 w, uint8 h) {
unsigned src = (uint16)si;
unsigned dst = x + y * kScreenwidth;
es = data.word(kWorkspace);

View File

@ -28,6 +28,7 @@
void frameoutfx(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, uint16 x, uint16 y);
void worktoscreen();
void multiget();
void multiget(uint16 x, uint16 y, uint8 width, uint8 height);
void convertkey();
void cls();
void printsprites();
@ -57,6 +58,7 @@
void showframe(uint16 dst, uint16 src, uint16 x, uint16 y, uint8 frameNumber, uint8 effectsFlag, uint8 *width, uint8 *height);
void printasprite(const Sprite *sprite);
void width160();
void multiput(uint16 x, uint16 y, uint8 width, uint8 height);
void multiput();
void eraseoldobs();
void clearsprites();