File: cfb.h

package info (click to toggle)
qemacs 0.3.1-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,040 kB
  • ctags: 3,226
  • sloc: ansic: 29,371; sh: 353; makefile: 338
file content (14 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

typedef struct CFBContext {
    unsigned char *base;
    int bpp;   /* number of bytes per pixel */
    int depth; /* number of color bits per pixel */
    int wrap;
    unsigned int (*get_color)(unsigned int);
    void (*draw_glyph)(QEditScreen *s1,
                       int x1, int y1, int w, int h, QEColor color,
                       unsigned char *glyph, int glyph_wrap);
} CFBContext;

int cfb_init(QEditScreen *s, 
             void *base, int wrap, int depth, const char *font_path);