LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2007, 11:01 AM   #1
-reverb-
LQ Newbie
 
Registered: Jul 2007
Location: Georgia
Distribution: Many
Posts: 12

Rep: Reputation: 0
Border-less (fullscreen) application under X - HowTo??


Hello All,

Please forgive me if this is newbie question:

I am trying to create a border-less application (i.e. fullscreen). I started with KDevelope "Simple Hello World" app but can't figure out if I can remove the border and go into fullscreen mode with these.

I then tried SVGALIB to avoid X all together but I soon hit a brick wall trying to support TrueType fonts (can't make FreeType work).

Any advice would be most appreciated at this point.... I just really don't know what the right plan of attack would be.

Thanks in advance!

-reverb-
 
Old 07-25-2007, 02:27 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Define border? In X, window borders are usually always set to zero as they are just about useless these days. But perhaps you meant window borders drawn by the window manager. In that case, you simply have to go around the window manager, use "CWOverrideRedirect" in the valuemask when creating a new window, and in the attibutes structure, simply set "override_redirect" to true. (note: im assuming you are using X directly thru xlib)
 
Old 07-25-2007, 04:45 PM   #3
-reverb-
LQ Newbie
 
Registered: Jul 2007
Location: Georgia
Distribution: Many
Posts: 12

Original Poster
Rep: Reputation: 0
SciYro,

Thanks for the reply. I am so much a newb that your explanation will need to bounce around my big evil head for a few days before I can make sense of it.

Also, forgive my clumsy attempt to describe what it is I am trying to do. I can't even converse in the proper context yet.

The bottom line is my app needs to fill the entire screen with data. i.e. every pixel horizontally and vertically must be rendered by my app. I am not allowed to have any borders/frames/outlines - whatever they should be called in Linux - surrounding my apps output. I think what I am trying to say is the app must run fullscreen??

I am lucky in that the required resolution for my app is 640x480x256 so I already have a supported video mode. If I could just be utilize all pixels on the entire screen, I would be GOLDEN!

Sorry if I am not stating all this in a Linux-centric framework. I just started getting my feet wet in this world and it's a lot to bite off at once.

Thanks for your patience.

-reverb-
 
Old 07-25-2007, 06:31 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Why just use SDL? It can do fullscreen mode automatically, with a simple API, and no need to deal with xlib (its a very bad library).
 
Old 07-25-2007, 06:54 PM   #5
-reverb-
LQ Newbie
 
Registered: Jul 2007
Location: Georgia
Distribution: Many
Posts: 12

Original Poster
Rep: Reputation: 0
OK.... This is good.

You have illustrated my problem perfectly. I do not know what is available/best for the given problem.

Based on a quick Google search, I assume that SDL refers to Simple DirectMedia Layer, yes? I'll read-up on SDL now!

As always, thanks for the pointer and your patience.

-reverb-
 
Old 08-01-2007, 02:47 PM   #6
-reverb-
LQ Newbie
 
Registered: Jul 2007
Location: Georgia
Distribution: Many
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SciYro
Why just use SDL? It can do fullscreen mode automatically, with a simple API, and no need to deal with xlib (its a very bad library).
SciYro,

Got SDL installed and it does exactly what I needed. Thanks so much for your guidance!

-reverb-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto leave vncviewer -fullscreen mode Consystor Linux - Software 3 09-05-2012 10:46 AM
fullscreen application and dual-screen: selecting which which screen to use silex_88 Ubuntu 3 10-19-2006 07:51 PM
Fullscreen-ing an X Application phrontist Linux - General 3 10-05-2004 07:54 PM
Fullscreen Application Problems InSane103 Linux - Software 8 08-17-2004 10:57 PM
howto change resolution in X so in wine games are fullscreen? SciYro Linux - Software 2 07-07-2004 04:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration