diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /libvo/vo_fbdev2.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_fbdev2.c')
-rw-r--r-- | libvo/vo_fbdev2.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libvo/vo_fbdev2.c b/libvo/vo_fbdev2.c index a18e9f2f47..3483e96456 100644 --- a/libvo/vo_fbdev2.c +++ b/libvo/vo_fbdev2.c @@ -109,15 +109,15 @@ static struct fb_cmap *make_directcolor_cmap(struct fb_var_screeninfo *var) int i, cols, rcols, gcols, bcols; uint16_t *red, *green, *blue; struct fb_cmap *cmap; - + rcols = 1 << var->red.length; gcols = 1 << var->green.length; bcols = 1 << var->blue.length; - + /* Make our palette the length of the deepest color */ cols = (rcols > gcols ? rcols : gcols); cols = (cols > bcols ? cols : bcols); - + red = malloc(cols * sizeof(red[0])); if(!red) { mp_msg(MSGT_VO, MSGL_ERR, "[fbdev2] Can't allocate red palette with %d entries.\n", cols); @@ -125,7 +125,7 @@ static struct fb_cmap *make_directcolor_cmap(struct fb_var_screeninfo *var) } for(i=0; i< rcols; i++) red[i] = (65535/(rcols-1)) * i; - + green = malloc(cols * sizeof(green[0])); if(!green) { mp_msg(MSGT_VO, MSGL_ERR, "[fbdev2] Can't allocate green palette with %d entries.\n", cols); @@ -134,7 +134,7 @@ static struct fb_cmap *make_directcolor_cmap(struct fb_var_screeninfo *var) } for(i=0; i< gcols; i++) green[i] = (65535/(gcols-1)) * i; - + blue = malloc(cols * sizeof(blue[0])); if(!blue) { mp_msg(MSGT_VO, MSGL_ERR, "[fbdev2] Can't allocate blue palette with %d entries.\n", cols); @@ -144,7 +144,7 @@ static struct fb_cmap *make_directcolor_cmap(struct fb_var_screeninfo *var) } for(i=0; i< bcols; i++) blue[i] = (65535/(bcols-1)) * i; - + cmap = malloc(sizeof(struct fb_cmap)); if(!cmap) { mp_msg(MSGT_VO, MSGL_ERR, "[fbdev2] Can't allocate color map\n"); @@ -160,7 +160,7 @@ static struct fb_cmap *make_directcolor_cmap(struct fb_var_screeninfo *var) cmap->blue = blue; cmap->green = green; cmap->transp = NULL; - + return cmap; } @@ -173,7 +173,7 @@ static int fb_preinit(int reset) fb_preinit_done = 0; return 0; } - + if (fb_preinit_done) return fb_err; fb_preinit_done = 1; |