mirror of
https://github.com/holub/mame
synced 2025-06-01 10:31:48 +03:00
better use yes/no instead of 1/0
This commit is contained in:
parent
ee5aca6203
commit
4ddbadef6e
@ -739,7 +739,7 @@ layout_element::component::component(running_machine &machine, xml_data_node &co
|
||||
else if (strcmp(compnode.name, "rect") == 0)
|
||||
{
|
||||
m_type = CTYPE_RECT;
|
||||
m_foldrect = xml_get_attribute_int_with_subst(machine, compnode, "fold", 0);
|
||||
m_foldrect = (strcmp("yes", xml_get_attribute_string_with_subst(machine, compnode, "fold", "no")) == 0);
|
||||
}
|
||||
|
||||
// disk nodes
|
||||
|
@ -163,7 +163,7 @@ private:
|
||||
astring m_string; // string for text components
|
||||
int m_digits; // number of digits for simple counters
|
||||
int m_textalign; // text alignment to box
|
||||
int m_foldrect; // fold rect diagonally
|
||||
bool m_foldrect; // fold rect diagonally
|
||||
bitmap_argb32 m_bitmap[MAX_BITMAPS]; // source bitmap for images
|
||||
astring m_dirname; // directory name of image file (for lazy loading)
|
||||
emu_file * m_file[MAX_BITMAPS]; // file object for reading image/alpha files
|
||||
|
Loading…
Reference in New Issue
Block a user