diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-03 21:34:57 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-03 21:34:57 +0000 |
| commit | 97c98d9d52c60bce1e70eb55dd807a21cbe32f04 (patch) | |
| tree | c57ee489faeb2c6b7eb4e5b2e05fcbb80b5df228 /src/ui/skin.h | |
| parent | ee34c25e1f1e225d2527574abf2980afea9adf7d (diff) | |
| download | qmmp-97c98d9d52c60bce1e70eb55dd807a21cbe32f04.tar.gz qmmp-97c98d9d52c60bce1e70eb55dd807a21cbe32f04.tar.bz2 qmmp-97c98d9d52c60bce1e70eb55dd807a21cbe32f04.zip | |
added double size mode
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1353 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/skin.h')
| -rw-r--r-- | src/ui/skin.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/skin.h b/src/ui/skin.h index bb16d7687..adb4b6c20 100644 --- a/src/ui/skin.h +++ b/src/ui/skin.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2008 by Ilya Kotov * + * Copyright (C) 2007-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * Based on Promoe, an XMMS2 Client * @@ -41,6 +41,10 @@ public: static Skin *instance(); static QPixmap getPixmap(const QString&, QDir); + int ratio() + { + return m_double_size ? 2 : 1; + } const QPixmap getMain() const { return m_main; @@ -339,6 +343,7 @@ private: * to load pixmap from default skin. */ QPixmap *getDummyPixmap(const QString&); + QPixmap scalePixmap(const QPixmap &pix, int ratio = 2); static Skin *m_instance; QDir m_skin_dir; QMap<uint, QPixmap> buttons; @@ -360,6 +365,7 @@ private: QList<QPixmap> m_balance; QList<QColor> m_vis_colors; bool m_use_cursors; + bool m_double_size; void loadMain(); void loadButtons(); |
