@@ -690,18 +690,18 @@ void info_xml_creator::output_display(device_t &device, const char *root_tag)
690
690
{
691
691
astring newtag (screendev -> tag ()), oldtag (":");
692
692
newtag .substr (newtag .find (oldtag .cat (root_tag )) + oldtag .len ());
693
-
693
+
694
694
fprintf (m_output , "\t\t<display" );
695
695
fprintf (m_output , " tag=\"%s\"" , xml_normalize_string (newtag ));
696
-
696
+
697
697
switch (screendev -> screen_type ())
698
698
{
699
699
case SCREEN_TYPE_RASTER : fprintf (m_output , " type=\"raster\"" ); break ;
700
700
case SCREEN_TYPE_VECTOR : fprintf (m_output , " type=\"vector\"" ); break ;
701
701
case SCREEN_TYPE_LCD : fprintf (m_output , " type=\"lcd\"" ); break ;
702
702
default : fprintf (m_output , " type=\"unknown\"" ); break ;
703
703
}
704
-
704
+
705
705
// output the orientation as a string
706
706
switch (m_drivlist .driver ().flags & ORIENTATION_MASK )
707
707
{
@@ -730,24 +730,24 @@ void info_xml_creator::output_display(device_t &device, const char *root_tag)
730
730
fprintf (m_output , " rotate=\"0\"" );
731
731
break ;
732
732
}
733
-
733
+
734
734
// output width and height only for games that are not vector
735
735
if (screendev -> screen_type () != SCREEN_TYPE_VECTOR )
736
736
{
737
737
const rectangle & visarea = screendev -> visible_area ();
738
738
fprintf (m_output , " width=\"%d\"" , visarea .width ());
739
739
fprintf (m_output , " height=\"%d\"" , visarea .height ());
740
740
}
741
-
741
+
742
742
// output refresh rate
743
743
fprintf (m_output , " refresh=\"%f\"" , ATTOSECONDS_TO_HZ (screendev -> refresh_attoseconds ()));
744
-
744
+
745
745
// output raw video parameters only for games that are not vector
746
746
// and had raw parameters specified
747
747
if (screendev -> screen_type () != SCREEN_TYPE_VECTOR && !screendev -> oldstyle_vblank_supplied ())
748
748
{
749
749
int pixclock = screendev -> width () * screendev -> height () * ATTOSECONDS_TO_HZ (screendev -> refresh_attoseconds ());
750
-
750
+
751
751
fprintf (m_output , " pixclock=\"%d\"" , pixclock );
752
752
fprintf (m_output , " htotal=\"%d\"" , screendev -> width ());
753
753
fprintf (m_output , " hbend=\"%d\"" , screendev -> visible_area ().min_x );
0 commit comments