From 7cfb7ce652d1c13ab72392d95dc93d967bf505fb Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 14 Aug 2022 12:38:08 -0400 Subject: concave masking; software anti aliasing --- bitmap_calls.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'bitmap_calls.cpp') diff --git a/bitmap_calls.cpp b/bitmap_calls.cpp index 2031459..dd5c793 100644 --- a/bitmap_calls.cpp +++ b/bitmap_calls.cpp @@ -19,6 +19,9 @@ void Bitmap_ConvertPacking(void *Buffer, void *DestBuffer, uint16 Width, uint16 uint32 XLookup = (X >> 2)*16 + (X % 4); uint32 YLookup = (Y >> 2)*(WidthP*4) + (Y % 4)*4; uint32 PixelToSeek = XLookup + YLookup; + if (Y == 48 && X == 0) + uint8 war = 0; + // if (YLookup == 2500 && XLookup == 1) uint8 *DPixel, *Pixel; if (Which == 0) { DPixel = Temp + PixelToSeek*BytesPerPixel; @@ -167,6 +170,8 @@ Bitmap_CopyToPointer(void *Input, void *Output, uint16 BytesPerPixel, uint64 Tot uint64 RemainderBytes = TotalBytes % ByteOffset; while (bytes <= TotalBytes - RemainderBytes) { + if (bytes > 2496*4) + int pp = 0; uint8 *Pixel = (uint8 *)Row + bytes; uint8 *Pixel2 = (uint8 *)Row2 + bytes; if (InstructionMode == instruction_mode_avx) { @@ -232,15 +237,6 @@ BitmapPackRGB(pixel_buffer *Buffer) { ClearBuffer(Buffer, Buffer->EffectBuffer); } -static void -OutputToViewport(pixel_buffer *CompBuffer, project_state *State, GLuint textureID) { - Convert4x4Chunk(CompBuffer, 1); - EndRenderState(State); - glBindTexture(GL_TEXTURE_2D, textureID); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, CompBuffer->Width, CompBuffer->Height, GL_RGBA, GL_UNSIGNED_BYTE, - CompBuffer->EffectBuffer); -} - static void DebugFillSolid(pixel_buffer *Raster, v4 Color) { -- cgit v1.2.3