chore: format everything

This commit is contained in:
Tropical
2026-03-30 02:13:59 -05:00
parent 470ddf959d
commit c9b90cae2c
463 changed files with 12748 additions and 11285 deletions

View File

@@ -4,7 +4,6 @@
#include "TextureManager.h"
#include "Texture.h"
#define MAX_MIP_LEVELS 5
Texture::Texture(const std::wstring& name, int mode, int width, int height,
@@ -65,7 +64,6 @@ void Texture::_init(const std::wstring& name, int mode, int width, int height,
if (m_iMipLevels > MAX_MIP_LEVELS) m_iMipLevels = MAX_MIP_LEVELS;
}
if (mode != TM_CONTAINER) {
glId = glGenTextures();
@@ -232,7 +230,6 @@ void Texture::blit(int x, int y, Texture* source, bool rotated) {
data[level]->position(0);
srcBuffer->position(0);
for (int srcY = 0; srcY < shh; srcY++) {
int dstY = yy + srcY;
int srcLine = srcY * sww * 4;
@@ -347,10 +344,10 @@ void Texture::transferFromImage(BufferedImage* image) {
return;
}
// #if 0
// int byteRemapRGBA[] = { 0, 1, 2, 3 };
// int byteRemapBGRA[] = { 2, 1, 0, 3 };
// #else
// #if 0
// int byteRemapRGBA[] = { 0, 1, 2, 3 };
// int byteRemapBGRA[] = { 2, 1, 0, 3 };
// #else
int byteRemapRGBA[] = {3, 0, 1, 2};
int byteRemapBGRA[] = {3, 2, 1, 0};
// #endif