Previous 199869 Revisions Next

r18408 Wednesday 10th October, 2012 at 13:06:37 UTC by hap
better use yes/no instead of 1/0
[src/emu]rendlay.c rendlay.h

trunk/src/emu/rendlay.c
r18407r18408
739739   else if (strcmp(compnode.name, "rect") == 0)
740740   {
741741      m_type = CTYPE_RECT;
742      m_foldrect = xml_get_attribute_int_with_subst(machine, compnode, "fold", 0);
742      m_foldrect = (strcmp("yes", xml_get_attribute_string_with_subst(machine, compnode, "fold", "no")) == 0);
743743   }
744744
745745   // disk nodes
trunk/src/emu/rendlay.h
r18407r18408
163163      astring            m_string;               // string for text components
164164      int               m_digits;               // number of digits for simple counters
165165      int               m_textalign;            // text alignment to box
166      int               m_foldrect;               // fold rect diagonally
166      bool            m_foldrect;               // fold rect diagonally
167167      bitmap_argb32      m_bitmap[MAX_BITMAPS];      // source bitmap for images
168168      astring            m_dirname;               // directory name of image file (for lazy loading)
169169      emu_file *         m_file[MAX_BITMAPS];      // file object for reading image/alpha files

Previous 199869 Revisions Next


© 1997-2024 The MAME Team