summaryrefslogtreecommitdiff
path: root/bitmap_calls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bitmap_calls.cpp')
-rw-r--r--bitmap_calls.cpp14
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);