Start using display size defines
This commit is contained in:
parent
18038b2870
commit
5650eb9905
18 changed files with 210 additions and 159 deletions
18
include/game/disp.h
Normal file
18
include/game/disp.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef _GAME_DISP_H
|
||||
#define _GAME_DISP_H
|
||||
|
||||
#define HU_DISP_WIDTH 576
|
||||
#define HU_DISP_WIDTHF ((float)HU_DISP_WIDTH)
|
||||
#define HU_DISP_HEIGHT 480
|
||||
#define HU_DISP_HEIGHTF ((float)HU_DISP_HEIGHT)
|
||||
#define HU_DISP_ASPECT (HU_DISP_WIDTHF/HU_DISP_HEIGHTF)
|
||||
|
||||
#define HU_DISP_CENTERXI (HU_DISP_WIDTH/2)
|
||||
#define HU_DISP_CENTERX (HU_DISP_WIDTHF/2)
|
||||
#define HU_DISP_CENTERYI (HU_DISP_HEIGHT/2)
|
||||
#define HU_DISP_CENTERY (HU_DISP_HEIGHTF/2)
|
||||
|
||||
#define HU_FB_WIDTH 640
|
||||
#define HU_FB_HEIGHT 480
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue