Gamestudio Links
Zorro Links
Newest Posts
Indicator RSI
by sdelatorre
Yesterday at 23:16
Transaction Cost
by tradingest
Yesterday at 21:52
Is it possible to do Trade Mode without live brokerage account?
by AndrewAMD
Yesterday at 20:36
OptimialF values in .fac file mostly zero
by SBGuy
Yesterday at 19:48
MED (or any tool) - change base frame / pose of frame 0 ?
by rayp
Yesterday at 17:55
Rigid Force Alpha - Classic side-scrolling shoot'em up
by Turrican
Yesterday at 16:09
Series within loop
by Spirit
Yesterday at 13:22
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
9 registered (AndrewAMD, alibaba, SBGuy, Superku, Quad, sdelatorre, 3 invisible), 460 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
jiffdbf, jgtrader, Chefmac, BazGen, pallab1964
18079 Registered Users
Topic Options
Rate This Topic
#470917 - 02/13/18 09:11 Window Strech?
tagimbul Offline
Member

Registered: 06/04/10
Posts: 203
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

Top
#470950 - 02/14/18 08:56 Re: Window Strech? [Re: tagimbul]
MasterQ32 Offline
Expert

Registered: 11/26/07
Posts: 2562
Loc: 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

Top


Moderator:  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