~ubuntu-branches/debian/experimental/mednafen/experimental

« back to all changes in this revision

Viewing changes to src/pcfx/king.cpp

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-01-31 07:21:35 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120131072135-es3dj12y00xcnrsk
Tags: 0.9.19-1
* New upstream WIP version.
* Update copyright information.
* Refresh use-system-tremor.patch and remove psx-big-endian-only.patch.
* Add spelling-fixes.patch based on Lintian's recommendations.
* Build-depend on debhelper 9 or later and remove corresponding Lintian
  override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
 int RemapPriority = 1;
296
296
 bool Done[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
297
297
 
298
 
 for(int i = 1; i < (1 + 8); i++)
 
298
 for(unsigned int i = 1; i < (1 + 8); i++)
299
299
 {
300
300
  for(int n = 0; n < 4; n++)
301
301
  {
1758
1758
  free(king);
1759
1759
  king = NULL;
1760
1760
 }
 
1761
 SCSICD_Close();
1761
1762
}
1762
1763
 
1763
1764
 
1895
1896
  { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 },
1896
1897
 };
1897
1898
 
1898
 
 
 
1899
#if 0
1899
1900
 const uint32 cg_per_mode[0x8] = 
1900
1901
 {
1901
1902
  0, // Invalid mode
1907
1908
  8, // 16-bit mode
1908
1909
  8, // 16-bit mode
1909
1910
 };
1910
 
 
 
1911
#endif
1911
1912
 const uint32 layer_or = (LAYER_BG0 + n) << 28;
1912
1913
 
1913
1914
 const uint32 palette_offset = ((fx_vce.palette_offset[1 + (n >> 1)] >> ((n & 1) ? 8 : 0)) << 1) & 0x1FF;
2417
2418
 rb_type = -1;
2418
2419
 
2419
2420
 #ifdef WANT_DEBUGGER
2420
 
 if(GfxDecode_Buf && GfxDecode_Line == fx_vce.raster_counter)
 
2421
 if(GfxDecode_Buf && GfxDecode_Line == (int32)fx_vce.raster_counter)
2421
2422
  DoGfxDecode();
2422
2423
 #endif
2423
2424
 
3333
3334
 else if(name == "ADPCMCTRL")
3334
3335
 {
3335
3336
  king->ADPCMControl = value;
 
3337
  SoundBox_SetKINGADPCMControl(king->ADPCMControl);
3336
3338
 }
3337
3339
 else if(name == "ADPCMBM0" || name == "ADPCMBM1")
3338
3340
 {
3817
3819
 return(value);
3818
3820
}
3819
3821
 
3820
 
void KING_SetGraphicsDecode(MDFN_Surface *surface, int line, int which, int xscroll, int yscroll, int pbn)
 
3822
void KING_SetGraphicsDecode(MDFN_Surface *decode_surface, int line, int which, int xscroll, int yscroll, int pbn)
3821
3823
{
3822
 
 GfxDecode_Buf = surface;
 
3824
 GfxDecode_Buf = decode_surface;
3823
3825
 GfxDecode_Line = line;
3824
3826
 GfxDecode_Layer = which;
3825
3827
 GfxDecode_Scroll = yscroll;
4017
4019
  }
4018
4020
 }
4019
4021
 else
4020
 
  memset(GfxDecode_Buf, 0, GfxDecode_Buf->w * GfxDecode_Buf->h * sizeof(uint32) * 3);
 
4022
  memset(GfxDecode_Buf->pixels, 0, GfxDecode_Buf->w * GfxDecode_Buf->h * sizeof(uint32) * 3);
4021
4023
}
4022
4024
 
4023
4025
#endif