Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Full Screen Problem

Author
Message
kike1978
13
Years of Service
User Offline
Joined: 22nd Jan 2013
Location:
Posted: 23rd Jan 2013 19:14
I have Nvidia GTX 460 and windows 7 64 bits, when i put this code..

SET DISPLAY MODE 384, 240, 16
SET WINDOW OFF

the screen turns black, some time ago i had a nvidia graphic card much more old and the image was showed stretched and fitted to 640x480 resolution. I want to use Full Screen mode and stretch screen,. Please Help mee!
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 24th Jan 2013 08:18
Set Display Mode 320, 240, 16
Set Window Off


zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 24th Jan 2013 15:46 Edited at: 24th Jan 2013 15:47
It's mostly going to come down to what resolutions your new graphics card supports. You can perform checklist for display modes to retrieve this info. Here is some code from the The Comet.

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
kike1978
13
Years of Service
User Offline
Joined: 22nd Jan 2013
Location:
Posted: 24th Jan 2013 21:15
Thanks for all, zeroSlave, my graphic card does not support resolutions lower than 640x480, what i want to do is using screen of 320x200 stretched/wrap to 640x480, my old graphic card supported it but my newer doesn't stretch or fit, intead of this, shows nothing/black or a small screen window next to a corner.
Any solution?
zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 25th Jan 2013 04:34
You could check he properties and maybe run it full desktop instead of full screen?

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 25th Jan 2013 04:50

Set Display Mode 320, 240, 32
Set Window on
Maximize Window


This is about the best you can do. A full-screen window at 320, 240 resolution stretched to fill the screen. I couldn't find anything to make a border-less window, perhaps a plugin will do this.

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th Jan 2013 18:10
Why do you want such a low resolution?
You could always draw to a bitmap and stretch the bitmap to fill the screen.

Meanwhile...
kike1978
13
Years of Service
User Offline
Joined: 22nd Jan 2013
Location:
Posted: 1st Feb 2013 17:33
Thank you very much. I am programming a copy of an old game which is in 320x200 mode. I need work with this resolution because i want to use the same graphics. Now i am maximizing the window, but i wanted borders dont appear. Thx u again
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 3rd Feb 2013 07:26
Quote: "Now i am maximizing the window, but i wanted borders dont appear."


Try 'set window layout 0,0,0'

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 4th Feb 2013 07:30
@kike1978
You can use an additional camera with your custom 320x200 (or even 1x1 LOL) resolution, forward all drawing operations into it, then just texture a plain with disabled filtering, stretch plain to screen, while your camera 0 has normal supported resolution like 800*600.

*** Merry Chuckmas! ***

Login to post a reply

Server time is: 2026-07-07 08:18:36
Your offset time is: 2026-07-07 08:18:36