fix: colisió de TRANSPATENT amb macro de windows
This commit is contained in:
10
.claude/settings.local.json
Normal file
10
.claude/settings.local.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Bash(cat:*)",
|
||||||
|
"Bash(cmake --build:*)"
|
||||||
|
],
|
||||||
|
"deny": [],
|
||||||
|
"ask": []
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -93,10 +93,10 @@ auto readPalFile(const std::string& file_path) -> Palette {
|
|||||||
// Constructor
|
// Constructor
|
||||||
Surface::Surface(int w, int h)
|
Surface::Surface(int w, int h)
|
||||||
: surface_data_(std::make_shared<SurfaceData>(w, h)),
|
: surface_data_(std::make_shared<SurfaceData>(w, h)),
|
||||||
transparent_color_(Color::index(Color::Cpc::TRANSPARENT)) { initializeSubPalette(sub_palette_); }
|
transparent_color_(Color::index(Color::Cpc::CLEAR)) { initializeSubPalette(sub_palette_); }
|
||||||
|
|
||||||
Surface::Surface(const std::string& file_path)
|
Surface::Surface(const std::string& file_path)
|
||||||
: transparent_color_(Color::index(Color::Cpc::TRANSPARENT)) {
|
: transparent_color_(Color::index(Color::Cpc::CLEAR)) {
|
||||||
SurfaceData loaded_data = loadSurface(file_path);
|
SurfaceData loaded_data = loadSurface(file_path);
|
||||||
surface_data_ = std::make_shared<SurfaceData>(std::move(loaded_data));
|
surface_data_ = std::make_shared<SurfaceData>(std::move(loaded_data));
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ constexpr const char* NAME = "pollo";
|
|||||||
constexpr const char* LONG_NAME = "Los pollos hermanos";
|
constexpr const char* LONG_NAME = "Los pollos hermanos";
|
||||||
constexpr const char* VERSION = "0.1";
|
constexpr const char* VERSION = "0.1";
|
||||||
constexpr const char* COPYRIGHT = "@2025 JailDesigner";
|
constexpr const char* COPYRIGHT = "@2025 JailDesigner";
|
||||||
constexpr const char* GIT_HASH = "";
|
constexpr const char* GIT_HASH = "d995680";
|
||||||
} // namespace Project
|
} // namespace Project
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ auto Color::fromString(const std::string& name) -> Uint8 {
|
|||||||
// Incluye nombres oficiales del CPC y aliases para compatibilidad
|
// Incluye nombres oficiales del CPC y aliases para compatibilidad
|
||||||
static const std::unordered_map<std::string, Uint8> COLOR_MAP = {
|
static const std::unordered_map<std::string, Uint8> COLOR_MAP = {
|
||||||
// Transparente
|
// Transparente
|
||||||
{"transparent", index(Cpc::TRANSPARENT)},
|
{"transparent", index(Cpc::CLEAR)},
|
||||||
|
|
||||||
// Colores oficiales Amstrad CPC
|
// Colores oficiales Amstrad CPC
|
||||||
{"black", index(Cpc::BLACK)},
|
{"black", index(Cpc::BLACK)},
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class Color {
|
|||||||
*/
|
*/
|
||||||
enum class Cpc : Uint8 {
|
enum class Cpc : Uint8 {
|
||||||
// Transparente (índice 0)
|
// Transparente (índice 0)
|
||||||
TRANSPARENT = 0,
|
CLEAR = 0, // Nota: No usar "TRANSPARENT" - colisiona con macro de Windows
|
||||||
|
|
||||||
// Negros y azules (R=0)
|
// Negros y azules (R=0)
|
||||||
BLACK = 1, // 0, 0, 0
|
BLACK = 1, // 0, 0, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user