Anyone ever use a borderless window for their game
BlitzMax Forums/BlitzMax Programming/Anyone ever use a borderless window for their game
| ||
Lots of games seem to have an option now for borderless window which runs at desktop resolution. It fills the screen but doesn't have alt+tab problems but I guess could have a worse framerate. Does BMax support it natively or do I need to make a mod tweak to do some extra WinAPI calls? Thx. |
| ||
Jake... http://www.blitzbasic.com/Community/posts.php?topic=102797#1232692 |
| ||
Awesome, many thanks! |
| ||
Just done this -- a "no source-hacking" option anyway! Full-screen borderless window (Win32) |
| ||
Ooh nice, no blitz source hacks is always appreciated by me. So this is true borderless, not just a window with the inner sides at desktop size and the border/title bar is still lurking outside of the display? (might show up on second screens for example) |
| ||
Seems to be correct here -- monitor 1 with demo on left, monitor 2 (telly!) on the right: http://postimg.org/image/j0tsvdhvx/20ecb5a8/ Excuse crap image host, can't access FTP right now. BTW Windows auto-shows and hides the taskbar as you click on the second display and back, which is nice. |
| ||
OK cool, that image was weird though, mostly black screen and a small rectangle of road(?) |
| ||
Yep, that's Print-Screen grabbing both monitors -- but I cropped the image just to show part of left-screen (with rect from my demo) and part of right-screen, main point being the clear division with no border between them. |
| ||
Global MainWindow:TGadget = CreateWindow("Game Window",.. (DeskTopSize.CX-WindowSize.CX)/2 ,.. (DeskTopSize.CY-WindowSize.CY)/2 ,.. WindowSize.CX ,.. WindowSize.CY ,.. Null,.. WINDOW_CLIENTCOORDS) Global Pane:TGadget = CreateCanvas( 0,.. 0,.. WindowSize.CX,.. WindowSize.CY,.. MainWindow) ActivateWindow( Pane )Sorry for this being incomplete, but its from a '06 file, with too many dependencies to quickly fix (I can post it if you want). The point is I used maxgui |
| ||
@BlitzSupport Ah I see, OK thanks. @H&K Thanks. I don't want to use MaxGUI though because it has to work with all the existing code for my game which runs in full screen or windowed mode using Graphics(whatever) |
| ||
No worries, but doesn't what I posted plus SetGraphics (CanvasGraphics(Pane)) effectively provide the same function as Graphics(whatever)? Edit: Im going to post this anyway, for the search info for future, But I have realised what I was misunderstanding. |
| ||
I've no idea, I've never used MaxGUI. |