]> git.sesse.net Git - vlc/commitdiff
* attribute "nbFrames" of element Bitmap is now "nbframes", as said in the
authorCyril Deguet <asmax@videolan.org>
Sat, 25 Mar 2006 11:01:03 +0000 (11:01 +0000)
committerCyril Deguet <asmax@videolan.org>
Sat, 25 Mar 2006 11:01:03 +0000 (11:01 +0000)
 documentation (and the old name was inconsistent with other attribute names)
 Sorry for the compatibility break...

modules/gui/skins2/parser/skin_parser.cpp
share/skins2/skin.dtd

index c6dff7d84b6de620990ac031d9dad25d72cb57f8..21699b62b83681bbf8d1ff55d579667360a43795 100644 (file)
@@ -91,13 +91,13 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
         RequireDefault( "id" );
         RequireDefault( "file" );
         RequireDefault( "alphacolor" );
-        CheckDefault( "nbFrames", "1" );
+        CheckDefault( "nbframes", "1" );
         CheckDefault( "fps", "4" );
 
         m_curBitmapId = uniqueId( attr["id"] );
         const BuilderData::Bitmap bitmap( m_curBitmapId,
                 attr["file"], convertColor( attr["alphacolor"] ),
-                atoi( attr["nbFrames"] ), atoi( attr["fps"] ) );
+                atoi( attr["nbframes"] ), atoi( attr["fps"] ) );
         m_pData->m_listBitmap.push_back( bitmap );
     }
 
@@ -108,13 +108,13 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
         RequireDefault( "y" );
         RequireDefault( "width" );
         RequireDefault( "height" );
-        CheckDefault( "nbFrames", "1" );
+        CheckDefault( "nbframes", "1" );
         CheckDefault( "fps", "4" );
 
         const BuilderData::SubBitmap bitmap( attr["id"],
                 m_curBitmapId, atoi( attr["x"] ), atoi( attr["y"] ),
                 atoi( attr["width"] ), atoi( attr["height"] ),
-                atoi( attr["nbFrames"] ), atoi( attr["fps"] ) );
+                atoi( attr["nbframes"] ), atoi( attr["fps"] ) );
         m_pData->m_listSubBitmap.push_back( bitmap );
     }
 
index 13ab27ffb960cf6e2248b18d9605100309579eb7..687824087c02be823e81a066557e9a02a8789c97 100644 (file)
@@ -21,7 +21,7 @@
         id          CDATA   #REQUIRED
         file        CDATA   #REQUIRED
         alphacolor  CDATA   #REQUIRED
-        nbFrames    CDATA   "1"
+        nbframes    CDATA   "1"
         fps         CDATA   "0"
     >
 <!ELEMENT SubBitmap EMPTY>
@@ -31,7 +31,7 @@
         y           CDATA   #REQUIRED
         width       CDATA   #REQUIRED
         height      CDATA   #REQUIRED
-        nbFrames    CDATA   "1"
+        nbframes    CDATA   "1"
         fps         CDATA   "0"
     >
 <!ELEMENT Font EMPTY>