Ver código fonte

Corrected issue on properties reading

Ray 6 anos atrás
pai
commit
88972a52b0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -4011,7 +4011,7 @@ RAYGUIDEF void GuiLoadStyle(const char *fileName)
                 {
                     case 'p':
                     {
-                        sscanf(buffer, "p %d %d %d", &controlId, &propertyId, &propertyValue);
+                        sscanf(buffer, "p %d %d 0x%x", &controlId, &propertyId, &propertyValue);
                         
                         if (controlId == 0) // DEFAULT control
                         {