Changes

Jump to navigation Jump to search
m
Oops.
Line 23: Line 23:  
    
 
    
 
   #define BNR_VER 0x0301
 
   #define BNR_VER 0x0301
   #define FLAG_FLIPV 0x8000
+
   #define FLAG_FLIPV 0x80
   #define FLAG_FLIPH 0x4000
+
   #define FLAG_FLIPH 0x40
 
   typedef struct {
 
   typedef struct {
 
     u16 version;
 
     u16 version;
Line 148: Line 148:  
     bannerstruct* bnr = (bannerstruct*) f_buf;
 
     bannerstruct* bnr = (bannerstruct*) f_buf;
 
     // check magic
 
     // check magic
     if(be16(&bnr->version) != BNR_VER)
+
     if(be16((u8*)&bnr->version) != BNR_VER)
 
     {
 
     {
 
       fprintf(stderr, "invalid banner icon (magic mismatch)\n");
 
       fprintf(stderr, "invalid banner icon (magic mismatch)\n");
Line 183: Line 183:  
        
 
        
 
       // todo: flipz!
 
       // todo: flipz!
       if(seq & FLAG_FLIPV = FLAG_FLIPV)
+
       if((seq & FLAG_FLIPV) = FLAG_FLIPV)
 
         fprintf(stderr, "warning: vertical flip ignored on sequence #%d\n", i);
 
         fprintf(stderr, "warning: vertical flip ignored on sequence #%d\n", i);
       if(seq & FLAG_FLIPH = FLAG_FLIPH)
+
       if((seq & FLAG_FLIPH) = FLAG_FLIPH)
 
         fprintf(stderr, "warning: horizontal flip ignored on sequence #%d\n", i);
 
         fprintf(stderr, "warning: horizontal flip ignored on sequence #%d\n", i);
 
        
 
        
113

edits

Navigation menu