faster compile-time for gdi backend

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@104 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-01 11:16:38 +00:00
parent 98360d3a3c
commit e2cfadea90
3 changed files with 130 additions and 132 deletions

View File

@@ -13,9 +13,7 @@
#include <setjmp.h> #include <setjmp.h>
#include <sys/types.h> #include <sys/types.h>
#include <assert.h> #include <assert.h>
#ifdef _WIN32 #ifndef _WIN32
#include <windows.h>
#else
#include <unistd.h> #include <unistd.h>
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/shm.h> #include <sys/shm.h>

View File

@@ -50,7 +50,7 @@ int main(int argc, char** argv) {
FT_Bitmap_Convert(lib, &face->glyph->bitmap, &bitmap, 1); FT_Bitmap_Convert(lib, &face->glyph->bitmap, &bitmap, 1);
printf("\t{%d, %d, {", face->glyph->bitmap_left, face->glyph->bitmap_top); printf("\t{%d, %d, {", face->glyph->bitmap_left, face->glyph->bitmap_top);
for(y = 0; y < atoi(argv[2]) - bitmap.rows; y++){ for(y = 0; y < atoi(argv[2]) - bitmap.rows; y++) {
printf("0%s", y == atoi(argv[2]) - 1 ? "" : ", "); printf("0%s", y == atoi(argv[2]) - 1 ? "" : ", ");
} }
for(y = 0; y < bitmap.rows; y++) { for(y = 0; y < bitmap.rows; y++) {