--- np2/io/gdc_sub.c 2004/02/21 00:25:33 1.17 +++ np2/io/gdc_sub.c 2004/06/28 12:31:32 1.19 @@ -14,6 +14,8 @@ enum { RT_TABLEMAX = (1 << RT_TABLEBIT) }; +static UINT16 gdc_rt[RT_TABLEMAX+1]; + typedef struct { SINT16 x; SINT16 y; @@ -23,8 +25,6 @@ typedef struct { const UINT32 gdcplaneseg[4] = {VRAM_E, VRAM_B, VRAM_R, VRAM_G}; -static UINT16 gdc_rt[RT_TABLEMAX+1]; - static const VECTDIR vectdir[16] = { { 0, 1, 1, 0}, { 1, 1, 1,-1}, { 1, 0, 0,-1}, { 1,-1,-1,-1}, @@ -179,7 +179,7 @@ void gdcsub_setvectl(GDCVECT *vect, int } } } - if (ope & 1) { + if (!((ope + 1) & 2)) { tmp = dx; dx = dy; dy = tmp;