misc cleanup
This commit is contained in:
parent
447f94c26c
commit
e4900a1066
4 changed files with 30 additions and 17 deletions
|
|
@ -1191,7 +1191,8 @@ int VIB_getStrength(void) {
|
|||
#define OVERLAY_RGBA_MASK 0x00ff0000,0x0000ff00,0x000000ff,0xff000000
|
||||
|
||||
#define POW_LOW_CHARGE 10
|
||||
|
||||
#define OVERLAY_FB 0
|
||||
#define OVERLAY_ID 1
|
||||
static void POW_initOverlay(void) {
|
||||
// setup surface
|
||||
pow.overlay = SDL_CreateRGBSurfaceFrom(NULL,SCALE2(OVERLAY_WIDTH,OVERLAY_HEIGHT),OVERLAY_DEPTH,SCALE1(OVERLAY_PITCH), OVERLAY_RGBA_MASK);
|
||||
|
|
@ -1212,8 +1213,8 @@ static void POW_initOverlay(void) {
|
|||
|
||||
// setup overlay
|
||||
memset(&pow.oargs, 0, sizeof(struct owlfb_overlay_args));
|
||||
pow.oargs.fb_id = 0;
|
||||
pow.oargs.overlay_id = 1;
|
||||
pow.oargs.fb_id = OVERLAY_FB;
|
||||
pow.oargs.overlay_id = OVERLAY_ID;
|
||||
pow.oargs.overlay_type = OWLFB_OVERLAY_VIDEO;
|
||||
pow.oargs.uintptr_overly_info = (uintptr_t)&pow.oinfo;
|
||||
|
||||
|
|
@ -1249,8 +1250,8 @@ static void POW_quitOverlay(void) {
|
|||
if (pow.overlay) SDL_FreeSurface(pow.overlay);
|
||||
|
||||
memset(&pow.oargs, 0, sizeof(struct owlfb_overlay_args));
|
||||
pow.oargs.fb_id = 0;
|
||||
pow.oargs.overlay_id = 1;
|
||||
pow.oargs.fb_id = OVERLAY_FB;
|
||||
pow.oargs.overlay_id = OVERLAY_ID;
|
||||
pow.oargs.overlay_type = OWLFB_OVERLAY_VIDEO;
|
||||
pow.oargs.uintptr_overly_info = 0;
|
||||
ioctl(gfx.fb0_fd, OWLFB_OVERLAY_DISABLE, &pow.oargs);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
#define SCREEN_WIDTH 640
|
||||
#define SCREEN_HEIGHT 480
|
||||
#define SCREEN_SCALE 2 // SCREEN_HEIGHT / 240
|
||||
#define SCREEN_SCALE 2 // SCREEN_HEIGHT / BASE_HEIGHT
|
||||
|
||||
#define SCREEN_DEPTH 16
|
||||
#define SCREEN_BPP 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue