mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-10-03 21:40:17 +00:00
Downloads LFS files
This commit is contained in:
@@ -825,11 +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)
|
||||
{
|
||||
std::cout << stbi_failure_reason() << std::endl;
|
||||
}
|
||||
else if (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));
|
||||
|
||||
|
Reference in New Issue
Block a user