summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk1
-rw-r--r--minui/resources.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 1c78b4287..215cfe569 100644
--- a/Android.mk
+++ b/Android.mk
@@ -47,6 +47,7 @@ LOCAL_STATIC_LIBRARIES := \
libpng \
libcutils \
libstdc++ \
+ libm \
libc
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
diff --git a/minui/resources.c b/minui/resources.c
index b5c99517b..ac7bdac4c 100644
--- a/minui/resources.c
+++ b/minui/resources.c
@@ -40,7 +40,7 @@ extern char* locale;
// 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) {
@@ -132,7 +132,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;