using physical size rather than virtual for core tests
This commit is contained in:
1
common.c
1
common.c
@@ -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,
|
||||
|
||||
@@ -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++)
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user