From 1c61642c47b7271aa5b4d10af120354011cfb33b Mon Sep 17 00:00:00 2001 From: Bobby Lucero Date: Sat, 27 Apr 2024 00:57:04 -0400 Subject: [PATCH] Temp naming and bumped down cmake version --- CMakeLists.txt | 2 +- src/Graphics/Graphics.cpp | 4 ++-- src/Graphics/Graphics.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1398b1e..b3291ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.28) +cmake_minimum_required(VERSION 3.27) project(Pycron) set(CMAKE_CXX_STANDARD 17) diff --git a/src/Graphics/Graphics.cpp b/src/Graphics/Graphics.cpp index 11ae986..d0564a9 100644 --- a/src/Graphics/Graphics.cpp +++ b/src/Graphics/Graphics.cpp @@ -143,7 +143,7 @@ void Graphics::bindMethods(pkpy::VM *vm) { float width = pkpy::py_cast(vm, args[2]); float height = pkpy::py_cast(vm, args[3]); float paletteIndex = pkpy::py_cast(vm, args[4]); - this->Rectangle(x, y, width, height, paletteIndex); + this->Rect(x, y, width, height, paletteIndex); return vm->None; }}); @@ -173,7 +173,7 @@ void Graphics::Circle(int x, int y, int radius, int paletteIndex) { DrawCircle(x, y, radius, Palette[paletteIndex]); } -void Graphics::Rectangle(int x, int y, int width, int height, int paletteIndex) { +void Graphics::Rect(int x, int y, int width, int height, int paletteIndex) { DrawRectangle(x, y, width, height, Palette[paletteIndex]); } diff --git a/src/Graphics/Graphics.h b/src/Graphics/Graphics.h index 242cc2e..fa85a00 100644 --- a/src/Graphics/Graphics.h +++ b/src/Graphics/Graphics.h @@ -58,7 +58,7 @@ public: void Clear(int paletteIndex); void Pixel(int x, int y, int paletteIndex); void Circle(int x, int y, int radius, int paletteIndex); - void Rectangle(int x, int y, int width, int height, int paletteIndex); + void Rect(int x, int y, int width, int height, int paletteIndex); void Text(std::string s, int x, int y, int paletteIndex);