mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 01:39:57 +00:00
WAGE: Disabling bounds calculation code as too buggy ATM.
This commit is contained in:
parent
37b5b64179
commit
24af06b682
@ -87,16 +87,16 @@ void Design::paint(Graphics::Surface *surface, Patterns &patterns, int x, int y)
|
||||
bool needRender = false;
|
||||
|
||||
if (_surface == NULL) {
|
||||
_boundsCalculationMode = true;
|
||||
//_boundsCalculationMode = true;
|
||||
_bounds->debugPrint(4, "Internal bounds:");
|
||||
_bounds->left = _bounds->top = 10000;
|
||||
_bounds->right =_bounds->bottom = -10000;
|
||||
render(patterns);
|
||||
//_bounds->left = _bounds->top = 10000;
|
||||
//_bounds->right =_bounds->bottom = -10000;
|
||||
//render(patterns);
|
||||
_boundsCalculationMode = false;
|
||||
if (_bounds->right == -10000) {
|
||||
_bounds->left = _bounds->top = _bounds->right = _bounds->bottom = 0;
|
||||
}
|
||||
_bounds->debugPrint(4, "Calculated bounds:");
|
||||
//_bounds->debugPrint(4, "Calculated bounds:");
|
||||
|
||||
_surface = new Graphics::Surface;
|
||||
_surface->create(_bounds->width(), _bounds->height(), Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
Loading…
Reference in New Issue
Block a user