diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-14 12:38:08 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-14 12:38:08 -0400 |
commit | 7cfb7ce652d1c13ab72392d95dc93d967bf505fb (patch) | |
tree | b68e0ddbcce7ee5c125c170920b815112c0c3d36 /bitmap_calls.cpp | |
parent | bc5375149c0ecb416848a2d3657ea41ae97177b3 (diff) |
concave masking; software anti aliasing
Diffstat (limited to 'bitmap_calls.cpp')
-rw-r--r-- | bitmap_calls.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
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) { @@ -233,15 +238,6 @@ BitmapPackRGB(pixel_buffer *Buffer) { } 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) { uint32 ColS = ColToUint32(Color); |