FreeBASIC
0.91.0
|
#include "../fb_gfx.h"
#include "fb_gfx_linux.h"
#include "../../rtlib/unix/fb_private_console.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/fb.h>
#include <pthread.h>
Go to the source code of this file.
Data Structures | |
struct | FBDEVDRIVER |
struct | GFXMODE |
Macros | |
#define | FB_AUX_VGA_PLANES_VGA4 0 |
#define | OUTB(port, value) { __asm__ __volatile__ ("outb %b0, %w1" : : "a"(value), "Nd"(port)); } |
Typedefs | |
typedef struct FBDEVDRIVER | FBDEVDRIVER |
Functions | |
static int | driver_init (char *title, int w, int h, int depth, int refresh_rate, int flags) |
static void | driver_exit (void) |
static void | driver_lock (void) |
static void | driver_unlock (void) |
static void | driver_set_palette (int index, int r, int g, int b) |
static void | driver_wait_vsync (void) |
static int | driver_get_mouse (int *x, int *y, int *z, int *buttons, int *clip) |
static void | driver_set_mouse (int x, int y, int cursor, int clip) |
static int * | driver_fetch_modes (int depth, int *size) |
static void | vga16_blitter (unsigned char *dest, int pitch) |
static void * | driver_thread (void *arg) |
static void | driver_save_screen (void) |
static void | driver_restore_screen (void) |
static void | driver_key_handler (int pressed, int repeated, int scancode, int key) |
int | fb_hFBDevInfo (ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *refresh) |
Variables | |
static FBDEVDRIVER | fb_fbdev |
GFXDRIVER | fb_gfxDriverFBDev |
static const GFXMODE | standard_mode [] |
static int | device_fd = -1 |
static struct fb_fix_screeninfo | device_info |
static struct fb_var_screeninfo mode | orig_mode |
static struct fb_cmap cmap | orig_cmap |
static unsigned char * | framebuffer = NULL |
static unsigned short * | palette = NULL |
static unsigned char | color_conv [4096] |
static BLITTER * | blitter |
static int | framebuffer_offset |
static int | is_running = FALSE |
static int | is_active = TRUE |
static int | vsync_flags = 0 |
static int | is_palette_changed = FALSE |
static int | mouse_fd = -1 |
static int | mouse_packet_size |
static int | mouse_shown = TRUE |
static int | mouse_x |
static int | mouse_y |
static int | mouse_z |
static int | mouse_buttons |
static int | mouse_clip = 0 |
static unsigned int | last_click_time = 0 |
static pthread_t | thread |
static pthread_mutex_t | mutex |
static pthread_cond_t | cond |
#define FB_AUX_VGA_PLANES_VGA4 0 |
Definition at line 17 of file gfx_driver_fbdev.c.
#define OUTB | ( | port, | |
value | |||
) | { __asm__ __volatile__ ("outb %b0, %w1" : : "a"(value), "Nd"(port)); } |
Definition at line 20 of file gfx_driver_fbdev.c.
typedef struct FBDEVDRIVER FBDEVDRIVER |
|
static |
Definition at line 538 of file gfx_driver_fbdev.c.
|
static |
Definition at line 620 of file gfx_driver_fbdev.c.
|
static |
Definition at line 595 of file gfx_driver_fbdev.c.
|
static |
|
static |
Definition at line 291 of file gfx_driver_fbdev.c.
|
static |
Definition at line 570 of file gfx_driver_fbdev.c.
|
static |
Definition at line 277 of file gfx_driver_fbdev.c.
|
static |
Definition at line 265 of file gfx_driver_fbdev.c.
|
static |
Definition at line 607 of file gfx_driver_fbdev.c.
|
static |
Definition at line 580 of file gfx_driver_fbdev.c.
|
static |
Definition at line 143 of file gfx_driver_fbdev.c.
|
static |
Definition at line 575 of file gfx_driver_fbdev.c.
|
static |
Definition at line 588 of file gfx_driver_fbdev.c.
int fb_hFBDevInfo | ( | ssize_t * | width, |
ssize_t * | height, | ||
ssize_t * | depth, | ||
ssize_t * | refresh | ||
) |
|
static |
|
static |
Definition at line 78 of file gfx_driver_fbdev.c.
|
static |
Definition at line 77 of file gfx_driver_fbdev.c.
|
static |
Definition at line 87 of file gfx_driver_fbdev.c.
|
static |
Definition at line 71 of file gfx_driver_fbdev.c.
|
static |
Definition at line 72 of file gfx_driver_fbdev.c.
|
static |
Definition at line 30 of file gfx_driver_fbdev.c.
GFXDRIVER fb_gfxDriverFBDev |
Definition at line 42 of file gfx_driver_fbdev.c.
|
static |
Definition at line 75 of file gfx_driver_fbdev.c.
|
static |
Definition at line 79 of file gfx_driver_fbdev.c.
|
static |
Definition at line 79 of file gfx_driver_fbdev.c.
|
static |
Definition at line 80 of file gfx_driver_fbdev.c.
|
static |
Definition at line 79 of file gfx_driver_fbdev.c.
|
static |
Definition at line 84 of file gfx_driver_fbdev.c.
|
static |
Definition at line 82 of file gfx_driver_fbdev.c.
|
static |
Definition at line 83 of file gfx_driver_fbdev.c.
|
static |
Definition at line 81 of file gfx_driver_fbdev.c.
|
static |
Definition at line 81 of file gfx_driver_fbdev.c.
|
static |
Definition at line 81 of file gfx_driver_fbdev.c.
|
static |
Definition at line 82 of file gfx_driver_fbdev.c.
|
static |
Definition at line 82 of file gfx_driver_fbdev.c.
|
static |
Definition at line 82 of file gfx_driver_fbdev.c.
|
static |
Definition at line 86 of file gfx_driver_fbdev.c.
|
static |
Definition at line 74 of file gfx_driver_fbdev.c.
|
static |
Definition at line 73 of file gfx_driver_fbdev.c.
|
static |
Definition at line 76 of file gfx_driver_fbdev.c.
|
static |
Definition at line 66 of file gfx_driver_fbdev.c.
|
static |
Definition at line 85 of file gfx_driver_fbdev.c.
|
static |
Definition at line 80 of file gfx_driver_fbdev.c.