Skip to content

Commit

Permalink
Compilefix for android demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruxo committed Jul 5, 2016
1 parent 6f59f2b commit 2fc00fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DemoAndroid/jni/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "tb_widgets.h"
#include "tb_select.h"
#include "tb_font_renderer.h"
#include "tb_language.h"

#include "tb_widgets_reader.h"
#include "tb_window.h"
Expand Down Expand Up @@ -122,13 +123,16 @@ EditListener edit_listener;
void Init(unsigned int width, unsigned int height)
{
renderer = new TBRendererGL();
tb_core_init(renderer, "language/lng_en.tb.txt");
tb_core_init(renderer);
root = new AppRoot();
Resize(width, height);

// Start listening to keyboard focus
TBWidgetListener::AddGlobalListener(&edit_listener);

// Load language file
g_tb_lng->Load("language/lng_en.tb.txt");

// Load the default skin, and override skin that contains the graphics specific to the demo.
g_tb_skin->Load("skin/skin.tb.txt", "demo_skin/skin.tb.txt");

Expand Down

0 comments on commit 2fc00fe

Please sign in to comment.