summaryrefslogtreecommitdiffstatsci
path: root/tests/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fonts')
-rw-r--r--tests/fonts/allfont.c4
-rw-r--r--tests/fonts/fontquery.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/fonts/allfont.c b/tests/fonts/allfont.c
index dc7d20c..8e8374b 100644
--- a/tests/fonts/allfont.c
+++ b/tests/fonts/allfont.c
@@ -172,7 +172,7 @@ void draw(VkvgSurface surfFont) {
char tmp[1024];
- VkvgFont mono = vkvg_font_create(surf, "mono", 12);
+ VkvgFont mono = vkvg_font_create(device, "mono", 12);
for (int i = curFontStartIdx; i < font_database->nfont; i++) {
FcPattern* font_entry = font_database->fonts[i];
@@ -199,7 +199,7 @@ void draw(VkvgSurface surfFont) {
if (onlyVariable && !variable)
continue;
- VkvgFont font = vkvg_font_create (surf, tmp, fontSize);
+ VkvgFont font = vkvg_font_create (device, tmp, fontSize);
if (vkvg_font_status(font)) {
printf("Error trying to load %s, from %s\n", tmp, file_path);
fflush(stdout);
diff --git a/tests/fonts/fontquery.c b/tests/fonts/fontquery.c
index 3296752..a780d38 100644
--- a/tests/fonts/fontquery.c
+++ b/tests/fonts/fontquery.c
@@ -282,7 +282,7 @@ void draw(VkvgSurface surfFont) {
FcPatternGetString (font, FC_FAMILY, 0, &family_name);
FcPatternGetString (font, FC_STYLE, 0, &style_variant);
FcPatternGetBool(font, FC_VARIABLE, 0, &var);
- VkvgFont f = vkvg_font_create_from_file(surf, (char*)fontFile, index, fontSize);
+ VkvgFont f = vkvg_font_create_from_file(device, (char*)fontFile, index, fontSize);
if (vkvg_font_status(f)) {
printf("Error trying to load %s, from %s\n", txtBuffCopy, fontFile);
fflush(stdout);
@@ -528,7 +528,7 @@ int main(int argc, char* argv[]) {
strcpy (txtBuffer, "sans");
txtBuffPtr = 4;
- sans16 = vkvg_font_create(surf, "sans", 16);
+ sans16 = vkvg_font_create(device, "sans", 16);
while (!vkengine_should_close(e)) {
glfwPollEvents();