{
"Name" : "Android",
"Options" : {
- "Debug" : true,
- "Optimization" : "None",
+ "Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_NOFONTCONFIG",
"_DEBUG"
"../deps/freetype-2.3.12/include",
"../deps/glext"
],
- "FastMath" : false
+ "FastMath" : true
},
"Platforms" : [
{
glViewport(0,0,w,h);
glLoadIdentity();
glOrtho(0,w,h,0,0.0,1.0);
+
+ currentVertexBuffer = 0;
return true;
}
import "i18n"
// Had to define this here for native decorations support, because the menu bar is part of total decoration's size, but not part of the system decorations
+#ifdef __ANDROID__
+define skinMenuHeight = 40;
+define statusBarHeight = 30;
+#else
define skinMenuHeight = 25;
define statusBarHeight = 18;
+#endif
default extern int __ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnKeyDown;
bool OnResizing(int * w, int * h)
{
- *h = Max(*h, 18);
+ *h = Max(*h, statusBarHeight);
if(!*w) *w = 80;
return true;
}
{
StatusField field;
int position = Max(clientSize.w, MIN_INFO_WIDTH + width)-1-2;
- Box clip { 2, 2, MIN_INFO_WIDTH, 17 };
+ Box clip { 2, 2, MIN_INFO_WIDTH, statusBarHeight-1 };
Window parent = this.parent;
if(!guiApp.textMode)
surface.SetBackground(white);
if(!guiApp.textMode)
{
- surface.ThinBevel(true, x - 2, 2, field.width + 4, 16);
+ surface.ThinBevel(true, x - 2, 2, field.width + 4, statusBarHeight-2);
surface.SetForeground(field.colorSet ? field.color : foreground);
}
else
}
if(field.text)
{
- Box clip { x, 2, x + field.width - 1, 17 };
+ Box clip { x, 2, x + field.width - 1, statusBarHeight-1 };
int tw;
surface.Clip(clip);
surface.TextExtent(field.text, strlen(field.text), &tw, null);
}
}
*/
+ if(gotInit)
+ {
+ int w = ANativeWindow_getWidth(androidActivity.window);
+ int h = ANativeWindow_getHeight(androidActivity.window);
+ if(desktopW != w || desktopH != h)
+ {
+ guiApp.SetDesktopPosition(0, 0, w, h, true);
+ desktopW = w;
+ desktopH = h;
+ guiApp.desktop.Update(null);
+ }
+ }
+
eventAvailable = true;
if(androidActivity.destroyRequested)
{
break;
case configChanged:
if(window)
- {
- int w = ANativeWindow_getWidth(window);
- int h = ANativeWindow_getHeight(window);
- if(desktopW != w || desktopH != h)
- {
- guiApp.SetDesktopPosition(0, 0, w, h, true);
- desktopW = w;
- desktopH = h;
- }
- guiApp.desktop.Update(null);
- }
+ guiApp.desktop.UpdateDisplay();
break;
}
}