mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1223319 (part 1) - Remove unused function nsICODecoder::CalcAlphaRowSize(). r=seth.
This commit is contained in:
parent
bd034c1373
commit
c81ad2d316
@ -27,14 +27,6 @@ static const uint32_t BITMAPINFOSIZE = bmp::InfoHeaderLength::WIN_ICO;
|
|||||||
// Actual Data Processing
|
// Actual Data Processing
|
||||||
// ----------------------------------------
|
// ----------------------------------------
|
||||||
|
|
||||||
uint32_t
|
|
||||||
nsICODecoder::CalcAlphaRowSize()
|
|
||||||
{
|
|
||||||
// Calculate rowsize in DWORD's and then return in # of bytes
|
|
||||||
uint32_t rowSize = (GetRealWidth() + 31) / 32; // + 31 to round up
|
|
||||||
return rowSize * 4; // Return rowSize in bytes
|
|
||||||
}
|
|
||||||
|
|
||||||
// Obtains the number of colors from the bits per pixel
|
// Obtains the number of colors from the bits per pixel
|
||||||
uint16_t
|
uint16_t
|
||||||
nsICODecoder::GetNumColors()
|
nsICODecoder::GetNumColors()
|
||||||
|
@ -93,8 +93,6 @@ private:
|
|||||||
// Fixes the ICO width to match that of the BIH.
|
// Fixes the ICO width to match that of the BIH.
|
||||||
// Returns false if invalid information is contained within.
|
// Returns false if invalid information is contained within.
|
||||||
bool FixBitmapWidth(int8_t* bih);
|
bool FixBitmapWidth(int8_t* bih);
|
||||||
// Calculates the row size in bytes for the AND mask table
|
|
||||||
uint32_t CalcAlphaRowSize();
|
|
||||||
// Obtains the number of colors from the BPP, mBPP must be filled in
|
// Obtains the number of colors from the BPP, mBPP must be filled in
|
||||||
uint16_t GetNumColors();
|
uint16_t GetNumColors();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user