mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Add initial version of font::print_wrap
graphics.PrintWrap is now also deprecated. An advantage of the new version (with flags) is that it'll be possible to do things like put a border around wrapped text, wrap text at larger scales, etc, but these things don't work perfectly yet. This commit also has some other fixes, like the default advance of 6 pixels for characters 0x00-0x1F in 8x8 fonts.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
0475539075
commit
1d8494db8d
@@ -210,7 +210,7 @@ public:
|
||||
|
||||
bool next_wrap_s(char buffer[], size_t buffer_size, size_t* start, const char* str, int maxwidth);
|
||||
|
||||
int PrintWrap(int x, int y, std::string s, int r, int g, int b, bool cen = false, int linespacing = -1, int maxwidth = -1);
|
||||
int PrintWrap(int x, int y, const std::string& s, int r, int g, int b, bool cen = false, int linespacing = -1, int maxwidth = -1);
|
||||
|
||||
void bprint(int x, int y, const std::string& t, int r, int g, int b, bool cen = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user