Bug 4289 - Adds TF2/L4D style "noborder" support to ioquake3
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: unspecified
Hardware: PC All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
: 4290
Depends on:
Blocks:
 
Reported: 2009-09-24 19:07 EDT by ensiform
Modified: 2009-11-03 15:31:09 EST
1 user (show)

See Also:


Attachments
Here's the patch file. (5.08 KB, application/octet-stream)
2009-09-24 19:07 EDT, ensiform

Description ensiform 2009-09-24 19:07:54 EDT
This basically just removes the window manager border from the game's window using SDL_NOFRAME if the varaible is true.

com_noborder (defaults to 0).  Must be changed before GLimp_Init or else it wont be detected as changed.

This is handy for sticking the game window on 1 monitor at noborder + max resolution and then other windows on your other monitor without dealing with any messy fullscreen alt-tab screw-ups.

I have only tested this on my normal windowed mode res which is smaller than my desktop res on my windows build.  So I was not able to test if the window shows up above the taskbar/superbar or below it.

If anyone wishes to test out this patch and or make additions to it feel free to do so.

NOTE: makes use of the SDL env vars to center screen. Is this supported across most SDL versions on at least general Linux/Win32/OSX builds?
Comment 1 ensiform 2009-09-24 19:09:22 EDT
*** Bug 4290 has been marked as a duplicate of this bug. ***
Comment 2 ensiform 2009-10-13 13:47:23 EDT
Could probably remove the check for noboder when centering screen and just always do it.
Comment 3 Thilo Schulz 2009-11-03 15:31:09 EST
I didn't apply the patch as is, but your wish should still have been granted in r1728