The attached code runs fine in the IDE on my PC but not (when compiled) on my PPC (xda orbit2).
The code is supposed to put the form into fullscreen mode, then fill the form with blocks and finally copy the contents of the form to the game window.
The problem seems to be the line
gwGame.DrawBackgroundImage2(formGame.Image)
as the compiled program will run without it.
Has anybody else had this problem or could suggest a solution?
If I were able to draw directly to a game window I could do without that line but this does not seem to be possible.
Currently DrawBackgroundImage releases the bitmap memory after drawing it.
It will be fixed in a future release.
Anyway you should use a Bitmap object with a Drawer object as it will work much faster (drawing off-screen).
See the attached code.
Need some help ... I wrote a simple Welcome screen for my friends PNA, but I have a little problem with the fullscreen mode. It doesnot fills the screen. Tried, to set the screen size in the Form1 to 320x240, and 320x234 too (manufacturer says, this is the native resolution), but nothing... The bottom of the screen is not "filled" with the window.
Taskbar is disabled in Win.
What is missing, or what is wrong? The code:
B4X:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
flb.New1("Form1",B4PObject(1))
flb.FullScreen(CPPC) 'On the device it will remove the title bar too
End Sub
Sub ImageButton1_Click
Shell("\sdmmc\navngo.exe","")
End Sub
Sub ImageButton2_Click
Shell("\MyStorage\CC\player.exe","")
End Sub