mirror of
https://github.com/holub/mame
synced 2025-06-09 22:33:00 +03:00
Fixed: 01508: most vector-based drivers: Assertions
This commit is contained in:
parent
f61e037749
commit
16e18f24af
@ -399,10 +399,10 @@ static screen_state *screen_init(const device_config *screen)
|
||||
assert(config->height > 0);
|
||||
assert(config->refresh > 0);
|
||||
assert(config->visarea.min_x >= 0);
|
||||
assert(config->visarea.max_x < config->width);
|
||||
assert((config->visarea.max_x < config->width) || (config->type == SCREEN_TYPE_VECTOR));
|
||||
assert(config->visarea.max_x > config->visarea.min_x);
|
||||
assert(config->visarea.min_y >= 0);
|
||||
assert(config->visarea.max_y < config->height);
|
||||
assert((config->visarea.max_y < config->height) || (config->type == SCREEN_TYPE_VECTOR));
|
||||
assert(config->visarea.max_y > config->visarea.min_y);
|
||||
|
||||
/* everything checks out, allocate the state object */
|
||||
|
Loading…
Reference in New Issue
Block a user