Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles committed Dec 28, 2024
1 parent bf686b4 commit 612b28c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LEGO1/lego/legoomni/include/pizza.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "isleactor.h"
#include "legostate.h"

#include <climits>
#include <limits.h>

class Act1State;
class PizzeriaState;
Expand Down
3 changes: 1 addition & 2 deletions LEGO1/lego/legoomni/src/common/legoutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ void InvokeAction(Extra::ActionType p_actionId, const MxAtomId& p_pAtom, MxS32 p

break;
case Extra::ActionType::e_run: {
const char* args[] =
{"/lego/sources/main/main.exe", "/script", p_pAtom.GetInternal(), NULL};
const char* args[] = {"/lego/sources/main/main.exe", "/script", p_pAtom.GetInternal(), NULL};
SDL_Process* process = SDL_CreateProcess(args, false);
} break;
case Extra::ActionType::e_enable:
Expand Down
8 changes: 4 additions & 4 deletions LEGO1/lego/sources/misc/legoimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ LegoResult LegoImage::Read(LegoStorage* p_storage, LegoU32 p_square)
}
m_palette = SDL_CreatePalette(count);
for (LegoU32 i = 0; i < count; i++) {
LegoPaletteEntry palette_entry;
if ((result = palette_entry.Read(p_storage)) != SUCCESS) {
LegoPaletteEntry paletteEntry;
if ((result = paletteEntry.Read(p_storage)) != SUCCESS) {
return result;
}
m_palette->colors[i] = palette_entry.getColor();
m_palette->colors[i] = paletteEntry.GetColor();
}
if (m_surface) {
SDL_DestroySurface(m_surface);
Expand Down Expand Up @@ -168,7 +168,7 @@ LegoResult LegoImage::Write(LegoStorage* p_storage)
if (m_palette) {
LegoPaletteEntry paletteEntry;
for (LegoU32 i = 0; i < m_palette->ncolors; i++) {
paletteEntry.setColor(m_palette->colors[i]);
paletteEntry.SetColor(m_palette->colors[i]);
if ((result = paletteEntry.Write(p_storage)) != SUCCESS) {
return result;
}
Expand Down
6 changes: 3 additions & 3 deletions LEGO1/lego/sources/misc/legoimage.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class LegoPaletteEntry {
void SetGreen(LegoU8 p_green) { m_color.g = p_green; }
LegoU8 GetBlue() const { return m_color.b; }
void SetBlue(LegoU8 p_blue) { m_color.b = p_blue; }
SDL_Color getColor() const { return m_color; }
void setColor(SDL_Color p_color) { m_color = p_color; }
SDL_Color GetColor() const { return m_color; }
void SetColor(SDL_Color p_color) { m_color = p_color; }
LegoResult Read(LegoStorage* p_storage);
LegoResult Write(LegoStorage* p_storage) const;

Expand All @@ -44,7 +44,7 @@ class LegoImage {
}
void SetPaletteEntry(LegoU32 p_i, LegoPaletteEntry& p_paletteEntry)
{
m_palette->colors[p_i] = p_paletteEntry.getColor();
m_palette->colors[p_i] = p_paletteEntry.GetColor();
}
const LegoU8* GetBits() const { return (LegoU8*) m_surface->pixels; }
LegoResult Read(LegoStorage* p_storage, LegoU32 p_square);
Expand Down

0 comments on commit 612b28c

Please sign in to comment.