summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-24 22:00:02 +0200
committerandroid code review <noreply-gerritcodereview@google.com>2012-08-24 22:00:02 +0200
commitbddbb5b370d925d6e5ae62d560f5e7ad09a6ffac (patch)
tree0097050939c367599ed4ca3d120588079e30dcb0
parentMerge "Fixed warnings in libmtdutils" (diff)
parentFixing trivial warnings for libminui (diff)
downloadandroid_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar.gz
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar.bz2
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar.lz
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar.xz
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.tar.zst
android_bootable_recovery-bddbb5b370d925d6e5ae62d560f5e7ad09a6ffac.zip
Diffstat (limited to '')
-rw-r--r--minui/resources.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minui/resources.c b/minui/resources.c
index b437a87cb..5e2062192 100644
--- a/minui/resources.c
+++ b/minui/resources.c
@@ -38,7 +38,7 @@
// need this functionality (it's used for gamma adjustment) so provide
// a dummy implementation to satisfy the linker.
double pow(double x, double y) {
- return x;
+ return x * y;
}
int res_create_surface(const char* name, gr_surface* pSurface) {
@@ -130,7 +130,7 @@ int res_create_surface(const char* name, gr_surface* pSurface) {
alpha = 1;
}
- int y;
+ unsigned int y;
if (channels == 3 || (channels == 1 && !alpha)) {
for (y = 0; y < height; ++y) {
unsigned char* pRow = pData + y * stride;