Gamestudio Links
Zorro Links
Newest Posts
Performance reporting showing Annual and monthly % returns
by OptimusPrime
Today at 01:19
Issue with inconsistent test results
by kvm
Yesterday at 17:24
Access string content through another string
by ChrstphFr
Yesterday at 11:30
How to return a vector from a function
by Superku
Yesterday at 05:39
Vector Displacement, realtime Blendshapes
by jumpman
08/14/18 23:46
Code Repository
by OptimusPrime
08/14/18 13:25
Votes for future features
by OptimusPrime
08/14/18 07:18
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
6 registered (Dalla, kvm, jenGs, firecrest, alibaba, bailemad), 452 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Ulenspegel, toto, FloMi, behr065, OptimusPrime
18027 Registered Users
Topic Options
Rate This Topic
#470917 - 02/13/18 09:11 Window Strech?
tagimbul Offline
Member

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