aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/setdefdispenv.c
blob: 2d7b2b464f2e8d96c4e68a969dba761e7e0189e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <sys/types.h>
#include <psxgpu.h>

DISPENV *SetDefDispEnv(DISPENV *disp, int x, int y, int w, int h) {

	disp->disp.x = x;
	disp->disp.y = y;
	disp->disp.w = w;
	disp->disp.h = h;

	disp->screen.x = 0;
	disp->screen.y = 0;
	disp->screen.w = 0;
	disp->screen.h = 0;

	disp->isinter = 0;
	disp->isrgb24 = 0;
	disp->reverse = 0;

	return disp;

}