diff options
| author | megazig <megazig@megazig-desktop.(none)> | 2009-09-20 14:20:55 -0500 |
|---|---|---|
| committer | megazig <megazig@megazig-desktop.(none)> | 2009-09-20 14:20:55 -0500 |
| commit | 30d7029aa7e0da4f85284bb0e2a017823f53f842 (patch) | |
| tree | c1dcb1dc8ac916285804e6283f30422f417fa010 | |
| parent | ac684b6c6b64d093b65069d2692c38b42fbdc0c1 (diff) | |
fixed stupid vtx issue
Diffstat (limited to '')
| -rw-r--r-- | brlyt.c | 8 | ||||
| -rw-r--r-- | xml.c | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -550,13 +550,13 @@ void PrintBRLYTEntry_pic1(brlyt_entry entry, u8* brlyt_file, mxml_node_t *tag) int n; for (n=0;n<4;n++) { vtx = mxmlNewElement(color, "vtx"); - attr = mxmlNewElement(color, "red"); + attr = mxmlNewElement(vtx, "red"); mxmlNewTextf( attr , 0 , "%02x" , ( be32(data2.vtx_colors[n]) >> 24 ) & 0xff ); - attr = mxmlNewElement(color, "red"); + attr = mxmlNewElement(vtx, "green"); mxmlNewTextf( attr , 0 , "%02x" , ( be32(data2.vtx_colors[n]) >> 16 ) & 0xff ); - attr = mxmlNewElement(color, "red"); + attr = mxmlNewElement(vtx, "blue"); mxmlNewTextf( attr , 0 , "%02x" , ( be32(data2.vtx_colors[n]) >> 8 ) & 0xff ); - attr = mxmlNewElement(color, "red"); + attr = mxmlNewElement(vtx, "alpha"); mxmlNewTextf( attr , 0 , "%02x" , ( be32(data2.vtx_colors[n]) >> 0 ) & 0xff ); } @@ -91,7 +91,7 @@ const char *whitespace_cb(mxml_node_t *node, int where) } if (where == 3 || where == 1){ return ""; - }else if(((node->prev && where == 0) || node->parent) && !(where == 2 && strncmp(name, "ua", 2) && strcmp(name, "rotate") && strcmp(name, "scale") && strcmp(name, "translate") && strcmp(name, "entries") && strcmp(name, "xmlyt") && strcmp(name, "xmlan") && strcmp(name, "entries") && strcmp(name, "triplet") && strcmp(name, "pair") && strcmp(name, "entry") && strcmp(name, "pane") && (strcmp(name, "tag") && strcmp(name, "size") && strcmp(name, "material") && strcmp(name, "colors") && strcmp(name, "subs") && strcmp(name, "font") && strcmp(name, "wnd4") && strcmp(name, "wnd4mat") && strcmp(name, "set") && strcmp(name, "coordinates") && strcmp(name, "TevStage") && strcmp(name, "texture") && strcmp(name, "TextureSRT") && strcmp(name, "CoordGen") && strcmp(name, "ChanControl") && strcmp(name, "MaterialColor") && strcmp(name, "TevSwapModeTable") && strcmp(name, "IndTextureSRT") && strcmp(name, "IndTextureOrder") && strcmp(name, "AlphaCompare") && strcmp(name, "BlendMode") )) ){ + }else if(((node->prev && where == 0) || node->parent) && !(where == 2 && strncmp(name, "ua", 2) && strcmp(name, "rotate") && strcmp(name, "scale") && strcmp(name, "translate") && strcmp(name, "entries") && strcmp(name, "xmlyt") && strcmp(name, "xmlan") && strcmp(name, "entries") && strcmp(name, "triplet") && strcmp(name, "pair") && strcmp(name, "entry") && strcmp(name, "pane") && (strcmp(name, "tag") && strcmp(name, "size") && strcmp(name, "material") && strcmp(name, "vtx") && strcmp(name, "colors") && strcmp(name, "subs") && strcmp(name, "font") && strcmp(name, "wnd4") && strcmp(name, "wnd4mat") && strcmp(name, "set") && strcmp(name, "coordinates") && strcmp(name, "TevStage") && strcmp(name, "texture") && strcmp(name, "TextureSRT") && strcmp(name, "CoordGen") && strcmp(name, "ChanControl") && strcmp(name, "MaterialColor") && strcmp(name, "TevSwapModeTable") && strcmp(name, "IndTextureSRT") && strcmp(name, "IndTextureOrder") && strcmp(name, "AlphaCompare") && strcmp(name, "BlendMode") )) ){ //sprintf(xmlbuff, "\n%*s", (depth-1)*4 , ""); //sprintf(xmlbuff, "\n%*s", (depth)*4 , "\t"); sprintf( xmlbuff , "\n%s" , tab_buffer ); |
