using physical size rather than virtual for core tests

This commit is contained in:
David Anders
2014-09-23 13:52:20 -05:00
parent 38c5557f45
commit 0b85bea760
3 changed files with 6 additions and 7 deletions

View File

@@ -58,7 +58,6 @@ void fb_open(int fb_num, struct fb_info *fb_info)
fb_info->var.xres, fb_info->var.yres,
fb_info->var.xres_virtual, fb_info->var.yres_virtual,
fb_info->fix.line_length, fb_info->var.bits_per_pixel);
printf("dim %dmm x %dmm\n", fb_info->var.width, fb_info->var.height);
void *ptr = mmap(0,
fb_info->var.yres_virtual * fb_info->fix.line_length,

View File

@@ -101,8 +101,8 @@ void fill_screen_solid(struct fb_info *fb_info, unsigned int color)
{
unsigned x, y;
unsigned h = fb_info->var.yres_virtual;
unsigned w = fb_info->var.xres_virtual;
unsigned h = fb_info->var.yres;
unsigned w = fb_info->var.xres;
for (y = 0; y < h; y++) {
for (x = 0; x < w; x++)

View File

@@ -94,8 +94,8 @@ static void draw_pixel(struct fb_info *fb_info, int x, int y, unsigned color)
static void fill_screen(struct fb_info *fb_info)
{
unsigned x, y;
unsigned h = fb_info->var.yres_virtual;
unsigned w = fb_info->var.xres_virtual;
unsigned h = fb_info->var.yres;
unsigned w = fb_info->var.xres;
for (y = 0; y < h; y++) {
for (x = 0; x < w; x++) {
@@ -153,8 +153,8 @@ void fill_screen_solid(struct fb_info *fb_info, unsigned int color)
{
unsigned x, y;
unsigned h = fb_info->var.yres_virtual;
unsigned w = fb_info->var.xres_virtual;
unsigned h = fb_info->var.yres;
unsigned w = fb_info->var.xres;
for (y = 0; y < h; y++) {
for (x = 0; x < w; x++)