Reply To: Run Inclinometer from Desktop Icon

Home Forums Forums Technical Support for BerryIMU Run Inclinometer from Desktop Icon Reply To: Run Inclinometer from Desktop Icon

#4025
jawood
Participant

For those that are interested I did work out how to make it work full screen and without a title bar.

if you just want no title bar add |SDL_NOFRAME to the end of
screen = SDL_SetVideoMode(480, 320, 0, SDL_SWSURFACE); (note I’ve change the first bit of this to hard define the size of the window the same size as the back ground image. Should look like this now
screen = SDL_SetVideoMode(480, 320, 0, SDL_SWSURFACE|SDL_NOFRAME); if you want to run full screen you only need to add |SDL_FULLSCREEN instead of SDL_NOFRAME the full screen command removes the boarders automatically.

Note:
If you remove the title bar you wont be able to move the window around the screen.
If you cant get to the terminal window you used to start the inclinometer you wont be able to kill it easily. (Need to work out how to enable the close button on the title bar, and how to move window when no frame.)
Also would be nice to be able to get it to run from a shortcut on the desktop….

Blip, blop, bloop…