corrections to compile on r18

This commit is contained in:
dborth 2009-05-21 04:17:44 +00:00
parent bb53cadc3a
commit a59ecff899
5 changed files with 10 additions and 8 deletions

View File

@ -33,7 +33,7 @@ CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \
-DSPC700_C -DSDD1_DECOMP \
-DCORRECT_VRAM_READS -DNEW_COLOUR_BLENDING \
-D_SZ_ONE_DIRECTORY -D_LZMA_IN_CB -D_LZMA_OUT_READ \
-fomit-frame-pointer -fno-exceptions \
-fomit-frame-pointer \
-Wno-unused-parameter -Wno-strict-aliasing
CXXFLAGS = $(CFLAGS)

View File

@ -33,7 +33,7 @@ CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \
-DSPC700_C -DSDD1_DECOMP \
-DCORRECT_VRAM_READS -DNEW_COLOUR_BLENDING \
-D_SZ_ONE_DIRECTORY -D_LZMA_IN_CB -D_LZMA_OUT_READ \
-fomit-frame-pointer -fno-exceptions \
-fomit-frame-pointer \
-Wno-unused-parameter -Wno-strict-aliasing
CXXFLAGS = -save-temps -Xassembler -aln=$@.lst $(CFLAGS)

View File

@ -159,6 +159,7 @@
#include <malloc.h>
#include <string.h>
#include <wchar.h>
#include <map>
/*! \struct ftgxCharData_

View File

@ -37,6 +37,7 @@
#include <string.h>
#include <vector>
#include <exception>
#include <wchar.h>
#include <math.h>
#include <asndlib.h>
#include <wiiuse/wpad.h>

View File

@ -218,8 +218,8 @@ void GuiButton::Update(GuiTrigger * t)
if(
(t->wpad.btns_d > 0 &&
wm_btns == wm_btns_trig ||
(cc_btns == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC)) ||
(wm_btns == wm_btns_trig ||
(cc_btns == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC))) ||
(t->pad.btns_d == trigger[i]->pad.btns_d && t->pad.btns_d > 0))
{
if(t->chan == stateChan || stateChan == -1)
@ -267,8 +267,8 @@ void GuiButton::Update(GuiTrigger * t)
if(
(t->wpad.btns_d > 0 &&
wm_btns == wm_btns_trig ||
(cc_btns == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC)) ||
(wm_btns == wm_btns_trig ||
(cc_btns == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC))) ||
(t->pad.btns_d == trigger[i]->pad.btns_h && t->pad.btns_d > 0))
{
if(trigger[i]->type == TRIGGER_HELD && state == STATE_SELECTED &&
@ -278,8 +278,8 @@ void GuiButton::Update(GuiTrigger * t)
if(
(t->wpad.btns_h > 0 &&
wm_btns_h == wm_btns_trig ||
(cc_btns_h == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC)) ||
(wm_btns_h == wm_btns_trig ||
(cc_btns_h == cc_btns_trig && t->wpad.exp.type == EXP_CLASSIC))) ||
(t->pad.btns_h == trigger[i]->pad.btns_h && t->pad.btns_h > 0))
{
if(trigger[i]->type == TRIGGER_HELD)