fix texture scaling in resize effect
REVIEW: 106140
This commit is contained in:
parent
ad2059bdbe
commit
f5845910f3
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ void ResizeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, Window
|
|||
if (m_active && w == m_resizeWindow) {
|
||||
if (m_features & TextureScale) {
|
||||
data += (m_currentGeometry.topLeft() - m_originalGeometry.topLeft());
|
||||
data *= QVector2D(m_currentGeometry.width()/m_originalGeometry.width(),
|
||||
m_currentGeometry.height()/m_originalGeometry.height());
|
||||
data *= QVector2D(float(m_currentGeometry.width())/m_originalGeometry.width(),
|
||||
float(m_currentGeometry.height())/m_originalGeometry.height());
|
||||
}
|
||||
effects->paintWindow(w, mask, region, data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue