getPrimaryPlaneInfo();
if ( (!x && !y && !out_w && !out_h) ||
- (out_w < sinfo.xres_virtual / 4) || (out_h < sinfo.yres_virtual / 4) || /* HW can't scale down by more than 4x */
- (out_w > sinfo.xres_virtual * 8) || (out_h > sinfo.yres_virtual * 8) ) { /* HW can't scale up by more than 8x */
+ (out_w < sinfo.xres / 4) || (out_h < sinfo.yres / 4) || /* HW can't scale down by more than 4x */
+ (out_w > sinfo.xres * 8) || (out_h > sinfo.yres * 8) ) { /* HW can't scale up by more than 8x */
pinfo.enabled = 0;
pinfo.pos_x = 0;
pinfo.pos_y = 0;
return;
}
- xres = sinfo.xres_virtual;
- yres = sinfo.yres_virtual;
+ xres = sinfo.xres;
+ yres = sinfo.yres;
/* Handle clipping: if the left or top edge of the window goes
* offscreen, clamp the overlay to the left or top edge of the
if (x < 0) {
/* clamp to left edge */
xoff = -x;
- if (out_w != sinfo.xres_virtual) {
+ if (out_w != sinfo.xres) {
/* account for scaling */
- xoff *= sinfo.xres_virtual;
+ xoff *= sinfo.xres;
xoff /= out_w;
}
xres -= xoff;
if (x + out_w > sinfo_p0.xres) {
/* clamp to right edge */
int diff = sinfo_p0.xres - x;
- if (out_w != sinfo.xres_virtual) {
+ if (out_w != sinfo.xres) {
/* account for scaling */
- xres = diff * sinfo.xres_virtual;
+ xres = diff * sinfo.xres;
xres /= out_w;
} else {
xres = diff;
* titlebar is usually forced to stay visible
*/
yoff = -y;
- if (out_h != sinfo.yres_virtual) {
+ if (out_h != sinfo.yres) {
/* account for scaling */
- yoff *= sinfo.yres_virtual;
+ yoff *= sinfo.yres;
yoff /= out_h;
}
yres -= yoff;
if (y + out_h > sinfo_p0.yres) {
/* clamp to bottom edge */
int diff = sinfo_p0.yres - y;
- if (out_h != sinfo.yres_virtual) {
+ if (out_h != sinfo.yres) {
/* account for scaling */
- yres = diff * sinfo.yres_virtual;
+ yres = diff * sinfo.yres;
yres /= out_h;
} else {
yres = diff;