Skip to content

Commit

Permalink
fix pasting new color types (legacy architecture ghosts)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-ack committed Jan 13, 2023
1 parent c120ae6 commit e30baca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions palmod/ColorSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ namespace ColorSystem
{
switch (uGameFlag)
{
//case DBFCI_A:
//case GGXXACR_S:
case DUMMY_RGBA8881:
case DUMMY_RGBA8887:
//case GGXXACR_P:
//case MBAACC_S:
//case UNICLR_A:
// return 4;
case DUMMY_RGBA8888_LE:
return 4;
case DUMMY_RGB888:
case DUMMY_BGR888:
return 3;
Expand Down
5 changes: 4 additions & 1 deletion palmod/PalModDlg_Edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,10 @@ BOOL CPalModDlg::IsPasteFromPalMod()

if (szTempStr[0] == '(')
{
if ((szTempStr[1] - k_nASCIICharacterOffset) < NUM_GAMES) //Gameflag
// legacy ((szTempStr[1] - k_nASCIICharacterOffset) < NUM_GAMES)
// check for when color format == game id, and then by the time they switched,
// there were over 127 - '!' games...
if ((szTempStr[1] - k_nASCIICharacterOffset) < 128) //Gameflag
{
uint16_t nPaletteCount = 0;
uint8_t cbColorSize = ColorSystem::GetCbForColorForGameFlag(szTempStr[1] - k_nASCIICharacterOffset, szTempStr[2]);
Expand Down

0 comments on commit e30baca

Please sign in to comment.