diff options
author | Frederico Linhares <fred@linhares.blue> | 2024-05-08 17:56:29 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2024-05-08 17:56:29 -0300 |
commit | 43821b0cffc5aa419c0218992f06f8962ae54a13 (patch) | |
tree | 97bdbbf710a78e6dcb181d92dd83e98d8b329c6d /src/font.cpp | |
parent | 70e156d47346ae3198c623e0af75e5703f894db3 (diff) |
refa Rename graphical engine to BluCat
Diffstat (limited to 'src/font.cpp')
-rw-r--r-- | src/font.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<VK::Font*>(obj); + auto ptr = static_cast<BluCat::Font*>(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) { |