Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Oct 28, 2023
1 parent 2c07909 commit fa7b167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nQuantCpp/MoDEQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ namespace MoDEQuant
hasSemiTransparency = false;
m_transparentPixelIndex = -1;
int pixelIndex = 0;
vector<ARGB> pixels(bitmapWidth * bitmapHeight);
const auto area = (size_t) (bitmapWidth * bitmapHeight);
vector<ARGB> pixels(area);
GrabPixels(pSource, pixels, hasSemiTransparency, m_transparentPixelIndex, m_transparentColor, 0xF, nMaxColors);

SIDE = hasSemiTransparency ? 4 : 3;
Expand Down

0 comments on commit fa7b167

Please sign in to comment.