Changeset 16809


Ignore:
Timestamp:
06/23/12 13:21:08 (12 years ago)
Author:
nit
Message:

[titan] fix compiler warn

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/fb.h

    r16747 r16809  
    410410               
    411411        convert_and_write(buf_p, outfile, width, height, bitdepth, interlace);
    412    
    413 
    414     return 0;
    415 }
    416 
    417 void pngforlcd(char *fbuffer, int width, int height)
     412
     413        return 0;
     414}
     415
     416void pngforlcd(unsigned char *fbuffer, int width, int height)
    418417{
    419418        fb2png(fbuffer, width, height, "/tmp/titanlcd.png");
  • titan/titan/skin.h

    r16790 r16809  
    37883788                if(lcdskinfb == NULL) {
    37893789                        if(node->name != NULL && ostrstr(node->name, "LCD_spf87") != NULL) {
    3790                                 //char *newskinfb = malloc(4 * 800 * 480);
    3791                                 char *newskinfb = calloc(1, 4 * 800 * 480);
     3790                                unsigned char *newskinfb = calloc(1, 4 * 800 * 480);
    37923791                                if(newskinfb == NULL)
     3792                                {
     3793                                        if(flag == 0 || flag == 4)
     3794                                                m_lock(&status.drawingmutex, 0);
    37933795                                        return -2;
     3796                                }
    37943797                                lcdskinfb = addfb("lcdskinfb", 999, 800, 480, 4, -1, newskinfb, 4 * 800 * 480);
    37953798                        }
    37963799                        else {
    3797                                 //char *newskinfb = malloc(4 * 320 * 240);
    3798                                 char *newskinfb = calloc(1, 4 * 320 * 240);
     3800                                unsigned char *newskinfb = calloc(1, 4 * 320 * 240);
    37993801                                if(newskinfb == NULL)
     3802                                {
     3803                                        if(flag == 0 || flag == 4)
     3804                                                m_lock(&status.drawingmutex, 0);
    38003805                                        return -2;
     3806                                }
    38013807                                lcdskinfb = addfb("lcdskinfb", 999, 320, 240, 4, -1, newskinfb, 4 * 320 * 240);
    38023808                        }       
     
    38623868                skinfb = merkskinfb;
    38633869                merkskinfb = NULL;
    3864                 delfb(lcdskinfb);
     3870                delfb("lcdskinfb");
    38653871                lcdskinfb = NULL;
    38663872        }
Note: See TracChangeset for help on using the changeset viewer.