Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to set Resolution #173714
12/19/07 01:49
12/19/07 01:49
Joined: Dec 2007
Posts: 8
A
arezxtreme Offline OP
Newbie
arezxtreme  Offline OP
Newbie
A

Joined: Dec 2007
Posts: 8
I am having trouble setting my screen to different resolutions. The ones that don't work make my monitor go black because they are not supported, however, the ones that should work never show up right. I see like small screens on top of the blue background and large screens cut off. The size is in a slider based on the variable 'res1', what should i put inside the if clauses if I want resolutions from video_mode = 6 - 11 (12 if possible, also video_mode = # doesn't work correctly alone)?

if (res1 <= 40)
{
???
}
if (res1 > 40 && res1 <= 80)
{
???
}
if (res1 > 80 && res1 <= 120)
{
???
}
if (res1 > 120 && res1 <= 160)
{
???
}
if (res1 > 160 && res1 <= 200)
{
???
}

Last edited by arezxtreme; 12/19/07 01:51.
Re: How to set Resolution [Re: arezxtreme] #173715
12/19/07 04:13
12/19/07 04:13
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Code:
video_set(640,480,32,2); // 640x480x32bit window

If you like Lite-C maybe you can change the if's in your code to switch case which also looks nicer. I don't think you need video_mode anymore and remember 640x480 is already the default resolution acknex engine is using. Also there is a bug in A7.06.1 with higher resolutions, at least i'd thought so when trying it on my widescreen.


smile
Re: How to set Resolution [Re: D3D] #173716
12/19/07 21:37
12/19/07 21:37
Joined: Dec 2007
Posts: 8
A
arezxtreme Offline OP
Newbie
arezxtreme  Offline OP
Newbie
A

Joined: Dec 2007
Posts: 8
thanks I'll give it a shot


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1