fullscreen problem

Discussion in 'Questions (Windows Mobile)' started by cpc6128, Feb 27, 2008.

  1. cpc6128

    cpc6128 Member Licensed User

    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.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     

    Attached Files:

  3. cpc6128

    cpc6128 Member Licensed User

    Fantastic, thank you!
    That works excellently & is indeed much faster!
     
  4. kaninjo

    kaninjo New Member

    Hello!

    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:
    Code:
    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
    Thanks, and Best Regards
    Kaninjo
     

    Attached Files:

  5. klaus

    klaus Expert Licensed User

    Hi kaninjo,

    Try this code:
    flb.FullScreen2(CPPC,true)

    This will remove both the title line and the menu line.

    Best regards
    Klaus
    Switzerland
     
    Last edited: Mar 5, 2008
  6. kaninjo

    kaninjo New Member

    Hi!

    Klaus!
    Tried the code. The bottom of the screen is still not filled at any resolution... :(

    P.S.: If I start the program from the explorer window, the scroll bar (of the expl. window) on the bottom is visible, but can't be actuated.
     
Loading...