harmonize coding style
This commit is contained in:
@@ -24,7 +24,7 @@ free_framebuf (Driver *driver) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (driver->framebuf != NULL)
|
if (driver->framebuf != NULL)
|
||||||
free (driver->framebuf);
|
free(driver->framebuf);
|
||||||
|
|
||||||
driver->framebuf = NULL;
|
driver->framebuf = NULL;
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ clear_framebuf (Driver *driver) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
framebuf_size = driver->wid * driver->hgt;
|
framebuf_size = driver->wid * driver->hgt;
|
||||||
memset (driver->framebuf, ' ', framebuf_size);
|
memset(driver->framebuf, ' ', framebuf_size);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ lib_hbar_static (Driver *drvthis, int x, int y, int len, int promille, int optio
|
|||||||
|
|
||||||
int pixels = total_pixels - cellwidth * pos;
|
int pixels = total_pixels - cellwidth * pos;
|
||||||
|
|
||||||
if( pixels >= cellwidth ) {
|
if ( pixels >= cellwidth ) {
|
||||||
/* write a "full" block to the screen... */
|
/* write a "full" block to the screen... */
|
||||||
#if defined(SEAMLESS_HBARS)
|
#if defined(SEAMLESS_HBARS)
|
||||||
drvthis->chr (drvthis, x+pos, y, cellwidth + cc_offset);
|
drvthis->chr (drvthis, x+pos, y, cellwidth + cc_offset);
|
||||||
@@ -139,7 +139,7 @@ lib_hbar_static (Driver *drvthis, int x, int y, int len, int promille, int optio
|
|||||||
drvthis->icon (drvthis, x+pos, y, ICON_BLOCK_FILLED);
|
drvthis->icon (drvthis, x+pos, y, ICON_BLOCK_FILLED);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if( pixels > 0 ) {
|
else if ( pixels > 0 ) {
|
||||||
/* write a partial block... */
|
/* write a partial block... */
|
||||||
drvthis->chr (drvthis, x+pos, y, pixels + cc_offset);
|
drvthis->chr (drvthis, x+pos, y, pixels + cc_offset);
|
||||||
break;
|
break;
|
||||||
@@ -168,11 +168,11 @@ lib_vbar_static (Driver *drvthis, int x, int y, int len, int promille, int optio
|
|||||||
|
|
||||||
int pixels = total_pixels - cellheight * pos;
|
int pixels = total_pixels - cellheight * pos;
|
||||||
|
|
||||||
if( pixels >= cellheight ) {
|
if ( pixels >= cellheight ) {
|
||||||
/* write a "full" block to the screen... */
|
/* write a "full" block to the screen... */
|
||||||
drvthis->icon (drvthis, x, y-pos, ICON_BLOCK_FILLED);
|
drvthis->icon (drvthis, x, y-pos, ICON_BLOCK_FILLED);
|
||||||
}
|
}
|
||||||
else if( pixels > 0 ) {
|
else if ( pixels > 0 ) {
|
||||||
/* write a partial block... */
|
/* write a partial block... */
|
||||||
drvthis->chr (drvthis, x, y-pos, pixels + cc_offset);
|
drvthis->chr (drvthis, x, y-pos, pixels + cc_offset);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user