Lines Matching refs:aDrawSize
182 Size aDrawSize; member in BackgroundPreviewImpl
262 aDrawSize = pBitmap->GetSizePixel(); in NotifyChange()
265 if ( aDrawSize.Width() > aInnerSize.Width() ) in NotifyChange()
267 aDrawSize.Height() = aDrawSize.Height() * aInnerSize.Width() / aDrawSize.Width(); in NotifyChange()
268 if ( aDrawSize.Height() > aInnerSize.Height() ) in NotifyChange()
270 aDrawSize.Width() = aDrawSize.Height(); in NotifyChange()
271 aDrawSize.Height() = aInnerSize.Height(); in NotifyChange()
274 aDrawSize.Width() = aInnerSize.Width(); in NotifyChange()
276 else if ( aDrawSize.Height() > aInnerSize.Height() ) in NotifyChange()
278 aDrawSize.Width() = aDrawSize.Width() * aInnerSize.Height() / aDrawSize.Height(); in NotifyChange()
279 if ( aDrawSize.Width() > aInnerSize.Width() ) in NotifyChange()
281 aDrawSize.Height() = aDrawSize.Width(); in NotifyChange()
282 aDrawSize.Width() = aInnerSize.Width(); in NotifyChange()
285 aDrawSize.Height() = aInnerSize.Height(); in NotifyChange()
288 aDrawPos.X() = (aSize.Width() - aDrawSize.Width()) / 2; in NotifyChange()
289 aDrawPos.Y() = (aSize.Height() - aDrawSize.Height()) / 2; in NotifyChange()
309 DrawBitmap( aDrawPos, aDrawSize, *pBitmap ); in Paint()