GLK: Converted fillRect to use a Rect to specify bounds

This commit is contained in:
Paul Gilbert 2018-10-28 14:43:09 -07:00 committed by Paul Gilbert
parent 13e2838715
commit ffe0f5220b
25 changed files with 198 additions and 131 deletions

View file

@ -33,22 +33,6 @@ size_t strlen_uni(const uint32 *s) {
return len;
}
int strToInt(const char *s) {
if (!*s)
// No string at all
return 0;
else if (toupper(s[strlen(s) - 1]) != 'H')
// Standard decimal string
return atoi(s);
// Hexadecimal string
uint tmp = 0;
int read = sscanf(s, "%xh", &tmp);
if (read < 1)
error("strToInt failed on string \"%s\"", s);
return (int)tmp;
}
glui32 bufferChangeCase(glui32 *buf, glui32 len, glui32 numchars, BufferChangeCase destcase,
BufferChangeCond cond, int changerest) {
glui32 ix, jx;