mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
- 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:
parent
183dca563d
commit
f1e93bcd8f
|
@ -219,6 +219,9 @@ $(OBJ_DIR)/%.o: Src/CPU/Z80/%.cpp
|
|||
$(OBJ_DIR)/%.o: Src/Inputs/%.cpp
|
||||
$(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
|
||||
$(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o
|
||||
|
||||
|
|
|
@ -394,7 +394,7 @@ void CRender3D::InsertVertex(ModelCache *Cache, const Vertex *V, const Poly *P,
|
|||
// Material color
|
||||
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);
|
||||
g = (GLfloat) ((polyRAM[0x400+colorIdx]>>8)&0xFF) * (1.0f/255.0f);
|
||||
r = (GLfloat) ((polyRAM[0x400+colorIdx]>>16)&0xFF) * (1.0f/255.0f);
|
||||
|
|
|
@ -585,7 +585,7 @@ void CInputs::CalibrateJoystick(int joyNum)
|
|||
if (!joyDetails->hasAxis[axisNum])
|
||||
continue;
|
||||
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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue