-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove std::array, solve some warnings with automatic conversions bet…
…ween u64 and u32.
- Loading branch information
Showing
12 changed files
with
102 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,76 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
#include "Types.h" | ||
|
||
static constexpr std::array< RGB, 64 > NES_PALETTE_COLORS = | ||
static constexpr byte NES_PALETTE_COLORS_COUNT = 64; | ||
|
||
static constexpr RGB NES_PALETTE_COLORS [ NES_PALETTE_COLORS_COUNT ] = | ||
{ | ||
{ | ||
{ 0x7C, 0x7C, 0x7C }, | ||
{ 0x00, 0x00, 0xFC }, | ||
{ 0x00, 0x00, 0xBC }, | ||
{ 0x44, 0x28, 0xBC }, | ||
{ 0x94, 0x00, 0x84 }, | ||
{ 0xA8, 0x00, 0x20 }, | ||
{ 0xA8, 0x10, 0x00 }, | ||
{ 0x88, 0x14, 0x00 }, | ||
{ 0x50, 0x30, 0x00 }, | ||
{ 0x00, 0x78, 0x00 }, | ||
{ 0x00, 0x68, 0x00 }, | ||
{ 0x00, 0x58, 0x00 }, | ||
{ 0x00, 0x40, 0x58 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x7C, 0x7C, 0x7C }, | ||
{ 0x00, 0x00, 0xFC }, | ||
{ 0x00, 0x00, 0xBC }, | ||
{ 0x44, 0x28, 0xBC }, | ||
{ 0x94, 0x00, 0x84 }, | ||
{ 0xA8, 0x00, 0x20 }, | ||
{ 0xA8, 0x10, 0x00 }, | ||
{ 0x88, 0x14, 0x00 }, | ||
{ 0x50, 0x30, 0x00 }, | ||
{ 0x00, 0x78, 0x00 }, | ||
{ 0x00, 0x68, 0x00 }, | ||
{ 0x00, 0x58, 0x00 }, | ||
{ 0x00, 0x40, 0x58 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
|
||
{ 0xBC, 0xBC, 0xBC }, | ||
{ 0x00, 0x78, 0xF8 }, | ||
{ 0x00, 0x58, 0xF8 }, | ||
{ 0x68, 0x44, 0xFC }, | ||
{ 0xD8, 0x00, 0xCC }, | ||
{ 0xE4, 0x00, 0x58 }, | ||
{ 0xF8, 0x38, 0x00 }, | ||
{ 0xE4, 0x5C, 0x10 }, | ||
{ 0xAC, 0x7C, 0x00 }, | ||
{ 0x00, 0xB8, 0x00 }, | ||
{ 0x00, 0xA8, 0x00 }, | ||
{ 0x00, 0xA8, 0x44 }, | ||
{ 0x00, 0x88, 0x88 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0xBC, 0xBC, 0xBC }, | ||
{ 0x00, 0x78, 0xF8 }, | ||
{ 0x00, 0x58, 0xF8 }, | ||
{ 0x68, 0x44, 0xFC }, | ||
{ 0xD8, 0x00, 0xCC }, | ||
{ 0xE4, 0x00, 0x58 }, | ||
{ 0xF8, 0x38, 0x00 }, | ||
{ 0xE4, 0x5C, 0x10 }, | ||
{ 0xAC, 0x7C, 0x00 }, | ||
{ 0x00, 0xB8, 0x00 }, | ||
{ 0x00, 0xA8, 0x00 }, | ||
{ 0x00, 0xA8, 0x44 }, | ||
{ 0x00, 0x88, 0x88 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
|
||
{ 0xF8, 0xF8, 0xF8 }, | ||
{ 0x3C, 0xBC, 0xFC }, | ||
{ 0x68, 0x88, 0xFC }, | ||
{ 0x98, 0x78, 0xF8 }, | ||
{ 0xF8, 0x78, 0xF8 }, | ||
{ 0xF8, 0x58, 0x98 }, | ||
{ 0xF8, 0x78, 0x58 }, | ||
{ 0xFC, 0xA0, 0x44 }, | ||
{ 0xF8, 0xB8, 0x00 }, | ||
{ 0xB8, 0xF8, 0x18 }, | ||
{ 0x58, 0xD8, 0x54 }, | ||
{ 0x58, 0xF8, 0x98 }, | ||
{ 0x00, 0xE8, 0xD8 }, | ||
{ 0x78, 0x78, 0x78 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0xF8, 0xF8, 0xF8 }, | ||
{ 0x3C, 0xBC, 0xFC }, | ||
{ 0x68, 0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 0xB8, 0xF8, 0xD8 }, | ||
{ 0x00, 0xFC, 0xFC }, | ||
{ 0xF8, 0xD8, 0xF8 }, | ||
{ 0x00, 0x00, 0x00 }, | ||
{ 0x00, 0x00, 0x00 } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters