*/}}
YimingWu 3 months ago
parent
commit
c3060c6450
2 changed files with 4 additions and 2 deletions
  1. 3 1
      android/src/CMakeLists.txt
  2. 1 1
      ouroperations.c

+ 3 - 1
android/src/CMakeLists.txt

@@ -34,9 +34,11 @@ SET(OPS ../../)
 
 add_library(${PROJECT_NAME} SHARED
 
-${OPS}ourpaint.c ${OPS}ouroperations.c ${OPS}ournodes.c ${OPS}ourtranslations.c ${OPS}ourshader.cpp ${OPS}ourstrings.cpp
+${OPS}ourpaint.c ${OPS}ouroperations.c ${OPS}ournodes.c ${OPS}ourshader.cpp ${OPS}ourstrings.cpp
 ${OPS}BuildResources/data_splash.c
 ${OPS}BuildResources/data_splash_highdpi.c
+${OPS}ourtranslations_zh-hans.c 
+${OPS}ourtranslations_es-ES.c 
 
 ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c)
 

+ 1 - 1
ouroperations.c

@@ -873,7 +873,7 @@ void our_CanvasDrawCanvas(laBoxedTheme *bt, OurPaint *unused_c, laUiItem* ui){
     int W, H; W = ui->R - ui->L; H = ui->B - ui->U;
     tnsFlush();
 
-    if (!e->OffScr || e->OffScr->pColor[0]->Height != ui->B - ui->U || e->OffScr->pColor[0]->Width != ui->R - ui->L){
+    if (!e->OffScr || e->OffScr->pColor[0]->Height != H || e->OffScr->pColor[0]->Width != W){
         if (e->OffScr) tnsDelete2DOffscreen(e->OffScr);
         e->OffScr = tnsCreate2DOffscreen(GL_RGBA16F, W, H, 0, 0, 0);
     }