Ver código fonte

Use the portable way to set ID limits

Victor Luchits 5 anos atrás
pai
commit
85e677591f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Include/RmlUi/Core/ID.h

+ 2 - 2
Include/RmlUi/Core/ID.h

@@ -64,7 +64,7 @@ enum class ShorthandId : uint8_t
 	FirstCustomId = NumDefinedIds,
 	FirstCustomId = NumDefinedIds,
 
 
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
-	MaxNumIds = UINT8_MAX
+	MaxNumIds = 0xff
 };
 };
 
 
 
 
@@ -209,7 +209,7 @@ enum class EventId : uint16_t
 	FirstCustomId = NumDefinedIds,
 	FirstCustomId = NumDefinedIds,
 
 
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
-	MaxNumIds = UINT16_MAX
+	MaxNumIds = 0xffff
 };
 };
 
 
 }
 }