From 43821b0cffc5aa419c0218992f06f8962ae54a13 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Wed, 8 May 2024 17:56:29 -0300 Subject: refa Rename graphical engine to BluCat --- src/font.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/font.cpp') diff --git a/src/font.cpp b/src/font.cpp index 21559e1..919d271 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Frederico de Oliveira Linhares + * Copyright 2022-2024 Frederico de Oliveira Linhares * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,12 +16,12 @@ #include "font.hpp" -#include "vk/font.hpp" +#include "blucat/font.hpp" void cg_free_font(mrb_state *mrb, void *obj) { - auto ptr = static_cast(obj); + auto ptr = static_cast(obj); ptr->~Font(); mrb_free(mrb, ptr); @@ -33,18 +33,18 @@ cg_font_type = {"CG_Font", cg_free_font}; static mrb_value cg_cFont_initialize(mrb_state *mrb, mrb_value self) { - VK::Font *ptr; + BluCat::Font *ptr; const char *font_path; mrb_int font_size; mrb_get_args(mrb, "zi", &font_path, &font_size); - ptr = (VK::Font*)DATA_PTR(self); + ptr = (BluCat::Font*)DATA_PTR(self); if(ptr) mrb_free(mrb, ptr); - ptr = (VK::Font*)mrb_malloc(mrb, sizeof(VK::Font)); + ptr = (BluCat::Font*)mrb_malloc(mrb, sizeof(BluCat::Font)); try { - new(ptr)VK::Font(font_path, font_size); + new(ptr)BluCat::Font(font_path, font_size); } catch(const std::invalid_argument &e) { -- cgit v1.2.3