1
0
Fork 0
forked from len0rd/rockbox

android: Get the port up and running again

The build system needed fixes because the tools paths changed and one tool that
we used (apkbuilder) was removed entirely. Recent NDKs don't ship gcc 4.4.3
anymore, therefore switch to 4.6. The code itself needed a fix for a jni
reference bug that was uncovered by KitKat.

The port now builds with latest sdk (r22) and ndk (r9d).

Change-Id: Id74fa54ba93bbb0ee30373fbe79e92c5ff03201d
This commit is contained in:
Thomas Martitz 2014-03-09 18:08:06 +01:00
parent 2a71c08533
commit 6499ce3e44
7 changed files with 60 additions and 52 deletions

View file

@ -57,14 +57,6 @@ public class RockboxFramebuffer extends SurfaceView
setEnabled(false);
}
/* second stage init; called from Rockbox with information about the
* display framebuffer */
private void initialize(int lcd_width, int lcd_height)
{
btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565);
setEnabled(true);
}
private void update(ByteBuffer framebuffer)
{
SurfaceHolder holder = getHolder();
@ -138,5 +130,7 @@ public class RockboxFramebuffer extends SurfaceView
public native void surfaceDestroyed(SurfaceHolder holder);
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
{
btm = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
setEnabled(true);
}
}