Starting refactor now.
This commit is contained in:
@ -73,7 +73,7 @@ void Texture::setSize(
|
||||
}
|
||||
|
||||
void Texture::fill(struct Color color) {
|
||||
struct Color *pixels = (struct Color *)memoryAllocate(
|
||||
auto pixels = memoryAllocate<struct Color>(
|
||||
sizeof(struct Color) * this->width * this->height
|
||||
);
|
||||
this->buffer(pixels);
|
||||
@ -81,7 +81,7 @@ void Texture::fill(struct Color color) {
|
||||
}
|
||||
|
||||
void Texture::fill(uint8_t color) {
|
||||
uint8_t *pixels = (uint8_t *)memoryAllocate(
|
||||
auto pixels = memoryAllocate<uint8_t>(
|
||||
sizeof(uint8_t) * this->width * this->height
|
||||
);
|
||||
this->buffer(pixels);
|
||||
|
Reference in New Issue
Block a user