- Fixed Win32 GCC Makefile.

- Reverted Nik's polygon palette index change in Models.cpp. Subtracting 1 was breaking Scud Race.
- Added an explicit typecast in Inputs.cpp, which GCC requires for some reason.
This commit is contained in:
Bart Trzynadlowski 2012-07-16 02:27:55 +00:00
parent 183dca563d
commit f1e93bcd8f
3 changed files with 5 additions and 2 deletions

View file

@ -219,6 +219,9 @@ $(OBJ_DIR)/%.o: Src/CPU/Z80/%.cpp
$(OBJ_DIR)/%.o: Src/Inputs/%.cpp $(OBJ_DIR)/%.o: Src/Inputs/%.cpp
$(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o $(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o
$(OBJ_DIR)/%.o: Src/OSD/%.cpp
$(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o
$(OBJ_DIR)/%.o: Src/OSD/SDL/%.cpp $(OBJ_DIR)/%.o: Src/OSD/SDL/%.cpp
$(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o $(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o

View file

@ -394,7 +394,7 @@ void CRender3D::InsertVertex(ModelCache *Cache, const Vertex *V, const Poly *P,
// Material color // Material color
if ((P->header[1]&2) == 0) if ((P->header[1]&2) == 0)
{ {
colorIdx = ((P->header[4]>>20)&0x7FF) - 1; colorIdx = ((P->header[4]>>20)&0x7FF) - 0;
b = (GLfloat) (polyRAM[0x400+colorIdx]&0xFF) * (1.0f/255.0f); b = (GLfloat) (polyRAM[0x400+colorIdx]&0xFF) * (1.0f/255.0f);
g = (GLfloat) ((polyRAM[0x400+colorIdx]>>8)&0xFF) * (1.0f/255.0f); g = (GLfloat) ((polyRAM[0x400+colorIdx]>>8)&0xFF) * (1.0f/255.0f);
r = (GLfloat) ((polyRAM[0x400+colorIdx]>>16)&0xFF) * (1.0f/255.0f); r = (GLfloat) ((polyRAM[0x400+colorIdx]>>16)&0xFF) * (1.0f/255.0f);

View file

@ -585,7 +585,7 @@ void CInputs::CalibrateJoystick(int joyNum)
if (!joyDetails->hasAxis[axisNum]) if (!joyDetails->hasAxis[axisNum])
continue; continue;
axisNumList.push_back(axisNum); axisNumList.push_back(axisNum);
printf(" %u: %s\n", axisNumList.size(), joyDetails->axisName[axisNum]); printf(" %u: %s\n", (unsigned) axisNumList.size(), joyDetails->axisName[axisNum]);
} }
printf(" 0: Unsure - help me choose...\n"); printf(" 0: Unsure - help me choose...\n");