1/* 2 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#ifndef BMP_H 11#define BMP_H 12 13#define SCREEN_SIZE (xres * yres * bpp) 14#define SCREEN(x, y) (&fb[(y) * xres * bpp + (x) * bpp]) 15 16extern char *fb; 17extern int xres, yres, bpp; 18 19int bmp_load(void *data, size_t size); 20 21#endif 22