Temp naming and bumped down cmake version

This commit is contained in:
Bobby Lucero 2024-04-27 00:57:04 -04:00
parent df9e305828
commit 1c61642c47
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.28)
cmake_minimum_required(VERSION 3.27)
project(Pycron)
set(CMAKE_CXX_STANDARD 17)

View File

@ -143,7 +143,7 @@ void Graphics::bindMethods(pkpy::VM *vm) {
float width = pkpy::py_cast<float>(vm, args[2]);
float height = pkpy::py_cast<float>(vm, args[3]);
float paletteIndex = pkpy::py_cast<float>(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]);
}

View File

@ -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);