Basicallly POC, but still somethign wrong with u_FontQuadParts

This commit is contained in:
2023-06-04 10:05:42 -07:00
parent d2dc93d3be
commit 0721e98e00
7 changed files with 45 additions and 21 deletions

View File

@ -12,7 +12,7 @@ namespace Dawn {
};
#pragma pack(push, 1)
struct __attribute__ ((packed)) Color {
struct Color {
float_t r, g, b, a;
struct Color operator * (const float_t &x) {

View File

@ -51,7 +51,7 @@ void Dawn::_newTrueTypePlaceholder(
charStore[c] = info;
// Buffer the pixels, oh dear GOD there has to be a more efficient way.
for(int32_t i = 0; i < face->glyph->bitmap.rows; i++) {
for(uint32_t i = 0; i < face->glyph->bitmap.rows; i++) {
memoryCopy(
(void *)(face->glyph->bitmap.buffer + (i * face->glyph->bitmap.width)),
(void *)(buffer + offset),