summaryrefslogtreecommitdiffstats
path: root/gui/gui.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-24 17:55:07 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-24 17:57:28 +0200
commitc8b199c8f1bc7cab0cd0a525a238a39301a606c0 (patch)
tree458af117193fb21edc887a2761536d9734112b93 /gui/gui.cpp
parentUpdate tablet layouts with ADB sideload (diff)
downloadandroid_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar.gz
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar.bz2
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar.lz
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar.xz
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.tar.zst
android_bootable_recovery-c8b199c8f1bc7cab0cd0a525a238a39301a606c0.zip
Diffstat (limited to 'gui/gui.cpp')
-rw-r--r--gui/gui.cpp42
1 files changed, 6 insertions, 36 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp
index ccde9f096..e128337b5 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -49,8 +49,6 @@ extern "C" {
#include "../variables.h"
#include "../partitions.hpp"
-#include "curtain.h"
-
const static int CURTAIN_FADE = 32;
using namespace rapidxml;
@@ -61,7 +59,7 @@ static int gGuiInitialized = 0;
static int gGuiConsoleRunning = 0;
static int gGuiConsoleTerminate = 0;
static int gForceRender = 0;
-static int gNoAnimation = 0;
+static int gNoAnimation = 1;
// Needed by pages.cpp too
int gGuiRunning = 0;
@@ -462,28 +460,11 @@ extern "C" int gui_init()
gr_init();
- // We need to write out the curtain blob
- if (sizeof(gCurtainBlob) > 32)
- {
- fd = open("/tmp/extract.jpg", O_CREAT | O_WRONLY | O_TRUNC);
- if (fd < 0)
- return 0;
-
- write(fd, gCurtainBlob, sizeof(gCurtainBlob));
- close(fd);
-
- if (res_create_surface("/tmp/extract.jpg", &gCurtain))
- {
- return -1;
- }
- }
- else
- {
- gNoAnimation = 1;
- if (res_create_surface("bootup", &gCurtain))
- return 0;
- }
- unlink("/tmp/extract.png");
+ if (res_create_surface("/res/images/curtain.jpg", &gCurtain))
+ {
+ printf("Unable to locate '/res/images/curtain.jpg'\nDid you set a DEVICE_RESOLUTION in your config files?\n");
+ return -1;
+ }
curtainSet();
@@ -493,17 +474,6 @@ extern "C" int gui_init()
extern "C" int gui_loadResources()
{
- // Make sure the sdcard is mounted before we continue
-//#ifdef RECOVERY_SDCARD_ON_DATA
- /*mkdir("/mnt/data-sdc", 0777);
- mount(dat.blk, "/mnt/data-sdc", dat.fst, 0, NULL);
- if (symlink("/mnt/data-sdc/media", "/sdcard"))
- {
- LOGE("Unable to symlink (errno %d)\n", errno);
- }*/
-//#else
-//#endif
-
// unlink("/sdcard/video.last");
// rename("/sdcard/video.bin", "/sdcard/video.last");
// gRecorder = open("/sdcard/video.bin", O_CREAT | O_WRONLY);