Skip to content

Commit

Permalink
cps2: get nCpsScreenWidth/nCpsScreenHeight directly from driver struct
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon committed Dec 6, 2023
1 parent 888e5e1 commit abd9d24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/burn/drv/capcom/cps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,9 @@ INT32 CpsInit()
INT32 Cps2Init()
{
Cps = 2;
BurnDrvGetVisibleSize(&nCpsScreenWidth, &nCpsScreenHeight);
nCpsGlobalXOffset = (nCpsScreenWidth-384)>>1;
nCpsGlobalYOffset = (nCpsScreenHeight-224)>>1;

if (CpsGetROMs(false)) {
return 1;
Expand Down
5 changes: 0 additions & 5 deletions src/burn/drv/capcom/d_cps2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11579,11 +11579,6 @@ static INT32 Cps2TurboInit()
BurnSampleSetRoute(i + 0x40, BURN_SND_SAMPLE_ROUTE_2, 0.10, BURN_SND_ROUTE_RIGHT);
}

nCpsScreenWidth = 416;
nCpsScreenHeight = 234;
nCpsGlobalXOffset = 16;
nCpsGlobalYOffset = 5;

return Cps2Init();
}

Expand Down

0 comments on commit abd9d24

Please sign in to comment.