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 / applying graphics on netbook

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 27th Nov 2011 17:08
I am making an app that should work on all computers including netbooks --> (the purpose of this app).

the app is working perfect on the netbook part of the graphics which is streched out of the screen resolution (640,480,32).

1- images used in .PNG format.
2- display resolution 1024,600,32.
3- app window resolution 640,480,32. (other resolutions tried and 4- failed).
4- full display mode tried and failed.

one more information is that I am adding the necessary DLLs manualy. because I want to keep my netbook DLL free.

the app is made in DBpro (all AppGameKit apps are tried successfully) so I think the matter is technical.
Westmere
16
Years of Service
User Offline
Joined: 12th Mar 2010
Location: Germany
Posted: 28th Nov 2011 21:15
I am not really sure what exactly you are asking but it sounds to me like you are trying to find which resolutions you can use.

Random trying isn't going to get you anywhere as different systems support different resolutions. You can find out which ones with the help of the "PERFORM CHECKLIST FOR DISPLAY MODES" command.

You should be able to write a small function that will select the best solution based on this.

If I misunderstood what you need please elaborate.


baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 29th Nov 2011 14:02
@basjak, DBPro will stretch 2D graphics if you are setting the display resolution different to the window resolution in some circumstances.

There are a number of different ways of overcoming this issue but it also depends how you are displaying the images. Are you pasting images or sprites? Are you setting the size of the sprites according to the display size?

It would be easier for us to help if you could give some example code that shows the problem or at least a screenshot?

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 30th Nov 2011 00:10
sorry guys I had to be away for a while.

I sorted out the problem by setting the texture flag value to 1 (load image file_name$,imgno,1)

the day was long and the code was intensive until I ran out of solutions. next day I did that and it worked.

technically, i think the netbook graphic card cannot support the default value which is 0 (although I got the latest).

Login to post a reply

Server time is: 2026-07-10 23:13:38
Your offset time is: 2026-07-10 23:13:38