mirror of
https://github.com/NoelFB/tiny_link.git
synced 2024-11-25 18:18:56 +08:00
updated to latest blah
version
This commit is contained in:
parent
4740c54465
commit
37a5afc52c
|
@ -1 +1 @@
|
|||
Subproject commit 3f07c03fa51162cee4dbe53abf4a958bb6c35cda
|
||||
Subproject commit 78b8140f539b0d0911b4426826201fcf95e568bf
|
|
@ -57,7 +57,7 @@ void Content::load()
|
|||
packer.padding = 0;
|
||||
|
||||
// load the main font
|
||||
font = SpriteFont(path() + "fonts/dogica.ttf", 8, SpriteFont::ASCII);
|
||||
font = SpriteFont(path() + "fonts/dogica.ttf", 8, SpriteFont::CharRange::ASCII);
|
||||
font.line_gap = 4;
|
||||
|
||||
// load sprites
|
||||
|
@ -118,8 +118,8 @@ void Content::load()
|
|||
packer.pack();
|
||||
sprite_atlas = Texture::create(packer.pages[0]);
|
||||
|
||||
subtextures.expand(packer.entries.size());
|
||||
for (auto& entry : packer.entries)
|
||||
subtextures.expand(packer.entries().size());
|
||||
for (auto& entry : packer.entries())
|
||||
subtextures[entry.id] = Subtexture(sprite_atlas, entry.packed, entry.frame);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user