Screen Resolution

Posted By: Sepiantum

Screen Resolution - 11/11/09 00:30

Hi. How do you manually set the screen resolution? I want my game to be 550 x 400. Halp me plzkthnx.
Posted By: garv3

Re: Screen Resolution - 11/11/09 01:08

video_set(550,400,32,2);
See manual for more infos!
Posted By: Sepiantum

Re: Screen Resolution - 11/11/09 01:10

My bad, i wanted to change the window width and height, not the resolution. Sorry.
Posted By: delinkx

Re: Screen Resolution - 11/11/09 02:51

see video_window from the manual.

Quote:

video_window(VECTOR* pos,VECTOR* size,var style,STRING* title)

pos vector containing the new x and y position in pixels, or NULL for no change
size vector containing the new x and y size in pixels, or NULL for no change
title new title of the window, or NULL for no change
style 0 for no change, or a combination of the following modes:

1 no border
2 thin border
4 thick border that allows resizing the window
16 title bar and border
48 title bar with close button
112 title bar with close and minimize buttons
256 hide the window


Posted By: Sepiantum

Re: Screen Resolution - 11/11/09 04:07

that just scales everything. i want to reset the whole window size but keep all of my models the same size. any help with that?
Posted By: Scorpion

Re: Screen Resolution - 11/11/09 11:29

I'm not exactly sure where you're talking about, but maybe it helps to change the camera.aspect?
Posted By: Sepiantum

Re: Screen Resolution - 11/11/09 23:06

I want to change my window size to 550 x 400 without scaling everything like video_window() does. And I want my resolution to be 550 x 400 too.
Posted By: rojart

Re: Screen Resolution - 11/11/09 23:27

Try this one:
Code:
#include <acknex.h>
#include <default.c>

function main()
{
  screen_size.x = 550;  screen_size.y = 400;
}



http://www.conitec.net/beta/ascreen_size.htm
Posted By: Sepiantum

Re: Screen Resolution - 11/12/09 03:49

thanks!
© 2024 lite-C Forums