summaryrefslogtreecommitdiffstats
path: root/gui/resources.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2016-03-14 01:21:38 +0100
committerDees Troy <dees_troy@teamw.in>2016-03-17 21:59:26 +0100
commitb240f4a6a31842067d0e9c57031a31f784ab71f5 (patch)
treededf7674a1f60f3e0d7549b7fe83735694e56ab5 /gui/resources.hpp
parentChange to dd for wiping crypto partitions (diff)
downloadandroid_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar.gz
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar.bz2
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar.lz
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar.xz
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.tar.zst
android_bootable_recovery-b240f4a6a31842067d0e9c57031a31f784ab71f5.zip
Diffstat (limited to '')
-rw-r--r--gui/resources.hpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/gui/resources.hpp b/gui/resources.hpp
index 4548c10b4..528fecc14 100644
--- a/gui/resources.hpp
+++ b/gui/resources.hpp
@@ -29,21 +29,13 @@ private:
protected:
static int ExtractResource(ZipArchive* pZip, std::string folderName, std::string fileName, std::string fileExtn, std::string destFile);
- static void LoadImage(ZipArchive* pZip, std::string file, gr_surface* source);
+ static void LoadImage(ZipArchive* pZip, std::string file, gr_surface* surface);
static void CheckAndScaleImage(gr_surface source, gr_surface* destination, int retain_aspect);
};
class FontResource : public Resource
{
public:
- enum Type
- {
- TYPE_TWRP,
-#ifndef TW_DISABLE_TTF
- TYPE_TTF,
-#endif
- };
-
FontResource(xml_node<>* node, ZipArchive* pZip);
virtual ~FontResource();
@@ -54,7 +46,6 @@ public:
protected:
void* mFont;
- Type m_type;
private:
void LoadFont(xml_node<>* node, ZipArchive* pZip);