256 { |
256 { |
257 if(m_historyViewEnabled) { |
257 if(m_historyViewEnabled) { |
258 HistoryEntry* entry = entryByIndex(m_currentIndex); |
258 HistoryEntry* entry = entryByIndex(m_currentIndex); |
259 if (entry) { |
259 if (entry) { |
260 TSize bmsize = bitmap->SizeInPixels(); |
260 TSize bmsize = bitmap->SizeInPixels(); |
|
261 #ifdef BRDO_MULTITOUCH_ENABLED_FF |
|
262 entry->storeThumbnail(bitmap, TRect(0,0,bmsize.iWidth, bmsize.iHeight)); |
|
263 #else |
261 TRect parentControlRect = m_historyCallback->parent()->Rect(); |
264 TRect parentControlRect = m_historyCallback->parent()->Rect(); |
262 int historyViewWidth = parentControlRect.Width(); |
265 int historyViewWidth = parentControlRect.Width(); |
263 int historyViewHeight( parentControlRect.Height()); |
266 int historyViewHeight( parentControlRect.Height()); |
264 // Find out that in either portrait or landscape view what is the max height |
267 // Find out that in either portrait or landscape view what is the max height |
265 int maxDimension = (historyViewWidth > historyViewHeight)? historyViewWidth:historyViewHeight; |
268 int maxDimension = (historyViewWidth > historyViewHeight)? historyViewWidth:historyViewHeight; |
266 int thumbnailHeight = Min(bmsize.iHeight, maxDimension*KCenterThumbnailHeightPercent/100); |
269 int thumbnailHeight = Min(bmsize.iHeight, maxDimension*KCenterThumbnailHeightPercent/100); |
267 int thumbnailWidth = Min(bmsize.iWidth, maxDimension*KCenterThumbnailWidthPercent/100); |
270 int thumbnailWidth = Min(bmsize.iWidth, maxDimension*KCenterThumbnailWidthPercent/100); |
268 entry->storeThumbnail(bitmap, TRect(0,0,thumbnailWidth, thumbnailHeight)); |
271 entry->storeThumbnail(bitmap, TRect(0,0,thumbnailWidth, thumbnailHeight)); |
|
272 #endif |
269 } |
273 } |
270 } |
274 } |
271 } |
275 } |
272 |
276 |
273 /** |
277 /** |