"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/provider/ScaledSizeProvider.cpp" between
ksnip-1.8.1.tar.gz and ksnip-1.8.2.tar.gz

About: ksnip is a Qt based cross-platform screenshot tool that provides many annotation features for your screenshots.

ScaledSizeProvider.cpp  (ksnip-1.8.1):ScaledSizeProvider.cpp  (ksnip-1.8.2)
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, * Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "ScaledSizeProvider.h" #include "ScaledSizeProvider.h"
#if defined(UNIX_X11)
#include <QApplication>
#include <QScreen>
#endif
QSize ScaledSizeProvider::scaledSize(const QSize &size) QSize ScaledSizeProvider::scaledSize(const QSize &size)
{ {
return size * scaleFactor(); return size * scaleFactor();
} }
int ScaledSizeProvider::scaledWidth(int width) int ScaledSizeProvider::scaledWidth(int width)
{ {
return static_cast<int>(width * scaleFactor()); return static_cast<int>(width * scaleFactor());
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)