Compare commits

...

3 Commits

Author SHA1 Message Date
Shylie
844e1b6c7a Downloads LFS files 2024-05-29 08:03:31 -04:00
Shylie
7cd81b31eb print stbi failure reason 2024-05-29 08:00:30 -04:00
Shylie
1e0be8eca0 Print out CWD on non-windows environments for debug purposes 2024-05-29 07:57:15 -04:00
2 changed files with 3 additions and 1 deletions

View File

@ -12,12 +12,14 @@ jobs:
with:
path: curr
submodules: recursive
lfs: true
- name: Checkout previous
uses: actions/checkout@v4
with:
path: prev
fetch-depth: 2
submodules: recursive
lfs: true
- run: cd prev && git checkout HEAD^
- name: Build current
run: cmake -S curr -B curr/build -DGLERMINAL_TEST=ON && cmake --build curr/build

View File

@ -825,7 +825,7 @@ int glerminal_load_sprites_file(const char* filename)
stbi_uc* const buffer = stbi_load(filename, &w, &h, nullptr, 4);
// verify atlas size is a multiple of CELL_SIZE in each dimension
if (buffer && w % glerminal::CELL_SIZE == 0 && h % glerminal::CELL_SIZE == 0)
if (w % glerminal::CELL_SIZE == 0 && h % glerminal::CELL_SIZE == 0)
{
GLERMINAL_G->load_atlas(w / glerminal::CELL_SIZE, h / glerminal::CELL_SIZE, reinterpret_cast<unsigned int*>(buffer));