Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
SGT_FW
by Aku_Aku. 04/10/24 16:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, Quad), 373 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Window Strech? #470917
02/13/18 08:11
02/13/18 08:11
Joined: Jun 2010
Posts: 212
tagimbul Offline OP
Member
tagimbul  Offline OP
Member

Joined: Jun 2010
Posts: 212
hey i have make yesterday a little programm:

Quote:

///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////
function main()
{
var screenScaleFreeze = 0;

mouse_mode = 4;
VECTOR tmp;

while(1)
{
if(screen_size.x - mouse_pos.x < 5 && screen_size.y - mouse_pos.y < 5)
mouse_pointer = 6;
else
mouse_pointer = 1;

if(mouse_pointer == 6 && mouse_left)
screenScaleFreeze = 1;

if(!mouse_left)
screenScaleFreeze = 0;

if(screenScaleFreeze)
{
vec_set(tmp,window_pos.x);

wait(1);
video_set(mouse_pos.x,mouse_pos.y,0,2);
video_window(tmp.x,NULL ,NULL,NULL );
}

DEBUG_VAR(screen_size.x ,20);
DEBUG_VAR(screen_size.y ,40);

wait(1);
}
}



by the corner down right i can stretch the window
video_set stretch not like a normal windows window. so i fix it with video_window
but the window is jerky

what can i do to make it smoother?

greez tom


meine website mit 3dgs sachen =) //noch nicht ganz umgebaut ^^"
http://flashbreaker.com/home.html
und mein YT channel mit diversen game entwicklungs videos, vor allem shader zeugs
https://www.youtube.com/user/tagimbul/videos
Re: Window Strech? [Re: tagimbul] #470950
02/14/18 07:56
02/14/18 07:56
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Change the style of the engine window with video_window with flag 4 (thick border that allows resizing the window) set, then react in on_message to WM_SIZE

But check out first, if reacting to WM_SIZE is necessary before changing the resolution twice


Visit my site: www.masterq32.de

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