Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Window Scaller +position #469621
11/25/17 12:50
11/25/17 12:50
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
hello,
i wont load window position and sice from a file, at start.
I use video_window to change the window parameter.
in the code underneath I have nearly same resolutions, but I get my panel double sizes . what do video_window in realy?
Code:
function main()
{
	wait(1);
	vec_set(screen_size,vector(1920,1080,0));
//	video_mode = 9;
//	video_screen = 0;
	wait(1);
	video_window(vector(2,2,0),vector(1900,1000,0),2,NULL);
...



Last edited by CocaCola; 11/25/17 21:12.
Re: Window Scaller +position [Re: CocaCola] #469627
11/25/17 21:19
11/25/17 21:19
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
I have nowI have zip the project hereI have download the project here
https://www.dropbox.com/s/3mxkdgxwnniiuvs/WindowVectors.zip?dl=0
It is a empty project. You can activate with esc the esc_menue an closet these by the smal button on the bottom right sight of the window.
for the scale mode you click on the middle botton, in posmode, you can switch beween change size or window position by the righn mouse botton, by clicking LMT you acept the window POS and Size.
my problem is now, how can I make, the mouse is staying in the game window?

Re: Window Scaller +position [Re: CocaCola] #469775
12/08/17 06:37
12/08/17 06:37
Joined: Dec 2009
Posts: 19
Saskatchewan
C
codeChallenged Offline
Newbie
codeChallenged  Offline
Newbie
C

Joined: Dec 2009
Posts: 19
Saskatchewan
#include <windows.h>

void lock_mouse() //keep mouse in game window
{
RECT rect;
GetClientRect(hWnd,&rect);
ClientToScreen(hWnd,&rect);
ClientToScreen(hWnd,&rect.right);
ClipCursor(&rect);

}


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