URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1487 |
Rev 1557 |
Line 137... |
Line 137... |
/* Dumps a bmp file, based on current image */
|
/* Dumps a bmp file, based on current image */
|
static int vga_dump_image (char *filename, struct vga_state *vga)
|
static int vga_dump_image (char *filename, struct vga_state *vga)
|
{
|
{
|
int sx = vga->hlen;
|
int sx = vga->hlen;
|
int sy = vga->vlen;
|
int sy = vga->vlen;
|
int i, x, y;
|
int i, x = 0, y = 0;
|
int pc = vga->ctrl & VGA_CTRL_PC;
|
int pc = vga->ctrl & VGA_CTRL_PC;
|
int rbpp = vga->ctrl & VGA_CTRL_CD;
|
int rbpp = vga->ctrl & VGA_CTRL_CD;
|
int bpp = rbpp >> 8;
|
int bpp = rbpp >> 8;
|
|
|
BMP_HEADER bh;
|
BMP_HEADER bh;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.