forked from enlightenment/efl
evas/fb: use virtual sizes to describe the fb mode geometry.
This was causing the fb engine to draw incorrectly when the virtual size was different from the size (xres != xres_virtual). For example, it happens an additional monitor is plugged into a notebook. Patch for SiT. SVN revision: 64259
This commit is contained in:
parent
ca46030e4d
commit
78410d7e8f
|
@ -325,8 +325,8 @@ fb_getmode(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
mode->width = mode->fb_var.xres;
|
mode->width = mode->fb_var.xres_virtual;
|
||||||
mode->height = mode->fb_var.yres;
|
mode->height = mode->fb_var.yres_virtual;
|
||||||
hpix =
|
hpix =
|
||||||
mode->fb_var.left_margin +
|
mode->fb_var.left_margin +
|
||||||
mode->fb_var.xres +
|
mode->fb_var.xres +
|
||||||
|
|
Loading…
Reference in New Issue