FBlib.h   FBlib.h 
skipping to change at line 33 skipping to change at line 33
#include <sys/mman.h> #include <sys/mman.h>
#include <string.h> #include <string.h>
#include <linux/kd.h> #include <linux/kd.h>
#include <signal.h> #include <signal.h>
#include <linux/vt.h> #include <linux/vt.h>
/*! Keys definition not in ncurses */ /*! Keys definition not in ncurses */
#include "keys.h" #include "keys.h"
/*! Default font used by font engine */ /*! Default font used by font engine */
#define DEFAULT_FONT "/usr/share/consolefonts/iso01.f14.psf.gz" #ifndef DEFAULT_FONT
#define DEFAULT_FONT "/usr/share/consolefonts/iso01.f14.psf.gz"
#endif
/* internal */ /* internal */
#define DEBUG #define DEBUG
#define u_char unsigned char #define u_char unsigned char
/* Error handling */ /* Error handling */
#ifndef OK #ifndef OK
#define OK 0 #define OK 0
#endif #endif
#define PARAM_ERR -1 #define PARAM_ERR -1
skipping to change at line 78 skipping to change at line 80
* \retval IOCTL_ERR The framebuffer settings could't be restored to their * \retval IOCTL_ERR The framebuffer settings could't be restored to their
* initial value */ * initial value */
int FB_exit(); int FB_exit();
/*! Bit magic to create a framebuffer dependent representation of /*! Bit magic to create a framebuffer dependent representation of
* a 16/32 bit color. The bpp used is the one the fb is currently set at. * a 16/32 bit color. The bpp used is the one the fb is currently set at.
* \param r red component 0 - 255 * \param r red component 0 - 255
* \param g green component 0 - 255 * \param g green component 0 - 255
* \param b blue comoponent 0 - 255 * \param b blue comoponent 0 - 255
* \param t transparency 0 - 255 (not supported on some kernel drivers) */ * \param t transparency 0 - 255 (not supported on some kernel drivers) */
FB_pixel FB_makecol(u_char r,u_char g, u_char b, u_char t); inline FB_pixel FB_makecol(u_char r,u_char g, u_char b, u_char t);
/*! Fills all the screen with the same color. Currently VERY slow. /*! Fills all the screen with the same color. Currently VERY slow.
* \param color Color used to redraw the screen */ * \param color Color used to redraw the screen */
void FB_clear_screen(FB_pixel color); void FB_clear_screen(FB_pixel color);
/*! Draws a pixel. /*! Draws a pixel.
* \param x X coordinate * \param x X coordinate
* \param y Y coordinate * \param y Y coordinate
* \param color Color of the pixel being drawn */ * \param color Color of the pixel being drawn */
inline void FB_putpixel(int x, int y, FB_pixel color); inline void FB_putpixel(int x, int y, FB_pixel color);
skipping to change at line 111 skipping to change at line 113
void FB_line(int sx, int sy, int ex, int ey, FB_pixel color); void FB_line(int sx, int sy, int ex, int ey, FB_pixel color);
/*! Optimized version of line() to draw a vertical line */ /*! Optimized version of line() to draw a vertical line */
void FB_vline(int x, int sy, int ey, FB_pixel color); void FB_vline(int x, int sy, int ey, FB_pixel color);
/*! Optimized version of line() to draw an horizontal line */ /*! Optimized version of line() to draw an horizontal line */
void FB_hline(int sx, int ex, int y, FB_pixel color); void FB_hline(int sx, int ex, int y, FB_pixel color);
/*! Draws a rectangle (only borders). /*! Draws a rectangle (only borders).
* \param sx,sy Upper left corner * \param sx,sy Upper left corner
* \param ex,ey Lower right corner */ * \param ex,ey Lower right corner
*/
void FB_rect(int sx, int sy, int ex, int ey, FB_pixel color); void FB_rect(int sx, int sy, int ex, int ey, FB_pixel color);
/*! Same as FB_rect, but the rectangle is filled */ /*! Same as FB_rect, but the rectangle is filled */
void FB_rectfill(int sx, int sy, int ex, int ey, FB_pixel color); void FB_rectfill(int sx, int sy, int ex, int ey, FB_pixel color);
/*! Draws a triangle
* \param x1,y1 First vertex
* \param x2,y2 Second vertex
* \param x3,y3 Third vertex
* \param col Color
*/
void FB_triangle(int x1,int y1,int x2,int y2,int x3,int y3,FB_pixel col);
/*! Draws a circle
* \param cx,cy Position of the center
* \param radius Radius of the circle
* \param color Color
*/
void FB_circle(int cx, int cy, int radius, FB_pixel color);
/*! Returns one of the following values, they are all defined in /*! Returns one of the following values, they are all defined in
* linux/fb.h * linux/fb.h
* \retval FB_VISUAL_MONO01 0 Monochr. 1=Black 0=White * \retval FB_VISUAL_MONO01 0 Monochr. 1=Black 0=White
* \retval FB_VISUAL_MONO10 1 Monochr. 1=White 0=Black * \retval FB_VISUAL_MONO10 1 Monochr. 1=White 0=Black
* \retval FB_VISUAL_TRUECOLOR 2 True color * \retval FB_VISUAL_TRUECOLOR 2 True color
* \retval FB_VISUAL_PSEUDOCOLOR 3 Pseudo color (like atari ) * \retval FB_VISUAL_PSEUDOCOLOR 3 Pseudo color (like atari )
* \retval FB_VISUAL_DIRECTCOLOR 4 Direct color * \retval FB_VISUAL_DIRECTCOLOR 4 Direct color
* \retval FB_VISUAL_STATIC_PSEUDOCOLOR 5 Pseudo color readonly */ * \retval FB_VISUAL_STATIC_PSEUDOCOLOR 5 Pseudo color readonly
*/
int FB_getVisual(); int FB_getVisual();
/*! Sets x and y respectively to the width and height of the visible screen */ /*! Sets x and y respectively to the width and height of the visible screen */
void FB_getres(int *x, int *y); void FB_getres(int *x, int *y);
/*! Returns virtual screen width */ /*! Returns virtual screen width */
int FB_getXVres(); int FB_getXVres();
/*! Returns virtual screen height */ /*! Returns virtual screen height */
int FB_getYVres(); int FB_getYVres();
 End of changes. 5 change blocks. 
4 lines changed or deleted 23 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/