URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1477 |
Rev 1484 |
Line 188... |
Line 188... |
/* Data is stored upside down */
|
/* Data is stored upside down */
|
for (y = sy - 1; y >= 0; y--) {
|
for (y = sy - 1; y >= 0; y--) {
|
int align = 4 - ((bpp + 1) * sx) % 4;
|
int align = 4 - ((bpp + 1) * sx) % 4;
|
int zero = 0;
|
int zero = 0;
|
for (x = 0; x < sx; x++) {
|
for (x = 0; x < sx; x++) {
|
unsigned long pixel = evalsim_mem32 (vga->vbar[vga->vbindex] + (y * sx + x) * (bpp + 1));
|
int breakpoint;
|
|
unsigned long pixel = eval_direct32 (vga->vbar[vga->vbindex] + (y * sx + x) * (bpp + 1), &breakpoint, 0, 0);
|
if (!fwrite (&pixel, sizeof (pixel), 1, fo)) return 1;
|
if (!fwrite (&pixel, sizeof (pixel), 1, fo)) return 1;
|
}
|
}
|
if (!fwrite (&zero, align, 1, fo)) return 1;
|
if (!fwrite (&zero, align, 1, fo)) return 1;
|
}
|
}
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.