cleanup: fb uses unsigned to match linux/fb.h

this removes warnings and keep consistency between system and evas
value signs.



SVN revision: 52427
This commit is contained in:
Gustavo Sverzut Barbieri 2010-09-18 23:11:01 +00:00
parent 19f0eebd27
commit 5dd0eeb7ab
2 changed files with 19 additions and 19 deletions

View File

@ -27,14 +27,14 @@ typedef struct _fb_mode FB_Mode;
struct _fb_mode
{
int width;
int height;
int refresh;
int depth;
int bpp;
unsigned int width;
unsigned int height;
unsigned int refresh;
unsigned int depth;
unsigned int bpp;
int fb_fd;
void *mem;
int mem_offset;
unsigned int mem_offset;
struct fb_var_screeninfo fb_var;
};
@ -51,7 +51,7 @@ int fb_await_switch(int block);
/* list all current possible video modes listed in /etc/fb.modes */
/* returns pointer to an aray of FB_Mode, and sets num_return to the number */
/* of elements int he returned array */
FB_Mode *fb_list_modes(int *num_return);
FB_Mode *fb_list_modes(unsigned int *num_return);
/* sets the fb mode to the resolution width x height and the depth to depth. */
/* and if refresh > 0 attempts to use a mode with a refresh rate (in Hz) of */
/* that. If this fails it will return NULL - if it succeeds it will return */
@ -61,18 +61,18 @@ FB_Mode *fb_list_modes(int *num_return);
/* NB: in 8bpp you get a 332 palette. This is fixed so all modes are */
/* "truecolor" - the only difference is how many bits bep red, green and */
/* blue channel. This is for speed reasons */
FB_Mode *fb_setmode(int width, int height, int depth, int refresh);
FB_Mode *fb_setmode(unsigned int width, unsigned int height, unsigned int depth, unsigned int refresh);
/* returns the current fb mode being used in FB_Mode */
FB_Mode *fb_getmode(void);
/* changes the bit depth of the current fb mode to depth and returns a new */
/* handle to a new fb mode with updated parameters. frees cur_mode for you. */
FB_Mode *fb_changedepth(FB_Mode *cur_mode, int depth);
FB_Mode *fb_changedepth(FB_Mode *cur_mode, unsigned int depth);
/* changes resolution - retaining current depth of the current mode, */
/* returning a handle to the new mode once done. frees cur_mode for you. */
FB_Mode *fb_changeres(FB_Mode *cur_mode, int width, int height, int refresh);
FB_Mode *fb_changeres(FB_Mode *cur_mode, unsigned int width, unsigned int height, unsigned int refresh);
/* chnages both resolution and depth and returns a handle to the new mode */
/* when done. frees cur_mode for you */
FB_Mode *fb_changemode(FB_Mode *cur_mode, int width, int height, int depth, int refresh);
FB_Mode *fb_changemode(FB_Mode *cur_mode, unsigned int width, unsigned int height, unsigned int depth, unsigned int refresh);
/* ------------------------------------------------------------------------- */
/* How to init: */

View File

@ -112,7 +112,7 @@ fb_init_palette_linear(FB_Mode *mode)
/* initialisation & cleanup */
FB_Mode *
fb_list_modes(int *num_return)
fb_list_modes(unsigned int *num_return)
{
FILE *f;
char line[256], label[256], value[256];
@ -211,10 +211,10 @@ fb_list_modes(int *num_return)
}
FB_Mode *
fb_setmode(int width, int height, int depth, int refresh)
fb_setmode(unsigned int width, unsigned int height, unsigned int depth, unsigned int refresh)
{
FB_Mode *modes, *mode = NULL;
int i, num_modes;
unsigned int i, num_modes;
modes = fb_list_modes(&num_modes);
if (modes)
@ -241,7 +241,7 @@ fb_setmode(int width, int height, int depth, int refresh)
}
FB_Mode *
fb_changedepth(FB_Mode *cur_mode, int depth)
fb_changedepth(FB_Mode *cur_mode, unsigned int depth)
{
cur_mode->fb_var.bits_per_pixel = depth;
@ -253,10 +253,10 @@ fb_changedepth(FB_Mode *cur_mode, int depth)
}
FB_Mode *
fb_changeres(FB_Mode *cur_mode, int width, int height, int refresh)
fb_changeres(FB_Mode *cur_mode, unsigned int width, unsigned int height, unsigned int refresh)
{
FB_Mode *modes;
int i, num_modes;
unsigned int i, num_modes;
modes = fb_list_modes(&num_modes);
if (modes)
@ -283,10 +283,10 @@ fb_changeres(FB_Mode *cur_mode, int width, int height, int refresh)
}
FB_Mode *
fb_changemode(FB_Mode *cur_mode, int width, int height, int depth, int refresh)
fb_changemode(FB_Mode *cur_mode, unsigned int width, unsigned int height, unsigned int depth, unsigned int refresh)
{
FB_Mode *modes;
int i, num_modes;
unsigned int i, num_modes;
modes = fb_list_modes(&num_modes);
if (modes)