2 registered members (AndrewAMD, 7th_zorro),
1,285
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: video_switch
[Re: Excessus]
#24234
03/18/04 20:12
03/18/04 20:12
|
Joined: Feb 2004
Posts: 477 Germany
jono
Senior Member
|
Senior Member
Joined: Feb 2004
Posts: 477
Germany
|
sorry, I can't test it, but does it generally work to give 0,0,1 ?! The 2nd value should either 16 or 32 , shouldn't it ?!
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc
|
|
|
Re: video_switch
[Re: jono]
#24235
03/18/04 23:27
03/18/04 23:27
|
Joined: Nov 2003
Posts: 1,267 ef
Christoph_B
Serious User
|
Serious User
Joined: Nov 2003
Posts: 1,267
ef
|
its "(resolution, color_depth, fullscreen/windowmode)" e.g.: for a resolution of 1280x960, 16bit and fullscreen
switch_video (9, 16, 1);
the command is "switch_video", but not "video_switch". or maybe your screen doesnīt support a resolution of 1280x960.
sef
|
|
|
Re: video_switch
[Re: Christoph_B]
#24236
03/19/04 00:46
03/19/04 00:46
|
Joined: Jan 2004
Posts: 2,013 The Netherlands
Excessus
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 2,013
The Netherlands
|
ok, i got it to work now, but i have another question, how can i detect the windows resolution setting, because if i have 1280x960 and i make my view larger than that, the window will become minimized, and when my view is to small, the places in the window that are not covered with the view are flickering between black and WED(the program "under" A6 engine)
ofcourse i can set the resolution right for my comp, but others might have problems with it.
BTW do i have to make new panels for other resolutions or can i scale them at runtime? and how can i make sure they are placed right?
|
|
|
Re: video_switch
[Re: Fudgit]
#24240
04/09/04 23:07
04/09/04 23:07
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
I don't think that the variables you mentioned can access the Windows resolution settings / 3D video card driver(s).
To access the Windows/3D Card Configuration you will need to use an A5 SDK to access the Win32 API functions and gather the resolution and color depth from Windows at which resolution/color depth you're on.. Then, you can compile the code as an A5 DLL (be sure you link your A5 header, C++, and library files (lib) if 3DGS SDK comes with a lib file but I don't have an SDK)) and in C-Script, you create a DLL handle, open your newly created DLL, and call the function to get the resolution/color depth information from Windows.
I have little or no knowledge of C++ so I can't help you out with it but I hope this helps anyway. I only have experience with C# which is part of .net Framework but just to let you know (probably as a reminder), SDK doesn't support C#.
|
|
|
|