mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
CComponentsPicture: fix internal value for dimension vars
The values contained not values from the scaled image file.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5e380fa4f8
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-30 (Tue, 30 Jun 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -130,6 +130,8 @@ void CComponentsPicture::initCCItem()
|
||||
//if initialized dimension values = 0, set current object dimension values to real image size otherwise use defined size
|
||||
g_PicViewer->getSize(pic_name.c_str(), (width == 0 ? &width : &w_pic), (height == 0 ? &height : &h_pic));
|
||||
g_PicViewer->rescaleImageDimensions(&w_pic, &h_pic, width, height);
|
||||
width = w_pic;
|
||||
height = h_pic;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user