Recent

Author Topic: LAMW: Bug on jCanvasES2_1.Screen_Setup  (Read 1940 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
LAMW: Bug on jCanvasES2_1.Screen_Setup
« on: July 24, 2016, 04:45:40 am »
Hello. I performed several tests, so I'm sure it happens.

Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
  2. begin
  3.   jCanvasES2_1.Screen_Setup(jCanvasES2_1.Width, jCanvasES2_1.Height, xp3D);
  4. end;

Start an empty LAMW GUI project, drop a jCanvasES2 component on the form and put the code above on JNIPrompt event. I compiled it to ARM target and run it using AVD. The program started and closed immediately.

If I change the xp3d to xp2d, everything seems to work correctly.

 

TinyPortal © 2005-2018