mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
CGE: Replace magic numbers with defines.
This commit is contained in:
parent
3687987291
commit
5512711434
@ -219,7 +219,7 @@ Common::Error CGEEngine::run() {
|
||||
}
|
||||
|
||||
// Initialize graphics using following:
|
||||
initGraphics(320, 200, false);
|
||||
initGraphics(kScrWidth, kScrHeight, false);
|
||||
|
||||
// Setup necessary game objects
|
||||
init();
|
||||
|
@ -819,14 +819,14 @@ void Vga::update() {
|
||||
_setPal = false;
|
||||
}
|
||||
if (_vm->_showBoundariesFl) {
|
||||
Vga::_page[0]->hLine(0, 200 - kPanHeight, 320, 0xee);
|
||||
Vga::_page[0]->hLine(0, kScrHeight - kPanHeight, kScrWidth, 0xee);
|
||||
if (_vm->_barriers[_vm->_now]._horz != 255) {
|
||||
for (int i = 0; i < 8; i++)
|
||||
Vga::_page[0]->vLine((_vm->_barriers[_vm->_now]._horz * 8) + i, 0, 200, 0xff);
|
||||
Vga::_page[0]->vLine((_vm->_barriers[_vm->_now]._horz * 8) + i, 0, kScrHeight, 0xff);
|
||||
}
|
||||
if (_vm->_barriers[_vm->_now]._vert != 255) {
|
||||
for (int i = 0; i < 4; i++)
|
||||
Vga::_page[0]->hLine(0, 80 + (_vm->_barriers[_vm->_now]._vert * 4) + i, 320, 0xff);
|
||||
Vga::_page[0]->hLine(0, 80 + (_vm->_barriers[_vm->_now]._vert * 4) + i, kScrWidth, 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user