better use yes/no instead of 1/0

This commit is contained in:
Michaël Banaan Ananas 2012-10-10 13:06:37 +00:00
parent ee5aca6203
commit 4ddbadef6e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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