Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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