mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 799062 - eliminate "warning: '&&' within '||'" messages in gfxFont.cpp. r=bas
This commit is contained in:
parent
5fc1043cdb
commit
02be153e3c
@ -1588,7 +1588,7 @@ struct GlyphBufferAzure {
|
||||
gfxContext *aThebesContext, const Matrix *aInvFontMatrix, bool aFinish = false)
|
||||
{
|
||||
// Ensure there's enough room for a glyph to be added to the buffer
|
||||
if (!aFinish && mNumGlyphs < GLYPH_BUFFER_SIZE || !mNumGlyphs) {
|
||||
if ((!aFinish && mNumGlyphs < GLYPH_BUFFER_SIZE) || !mNumGlyphs) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -4926,7 +4926,7 @@ gfxTextRun::Draw(gfxContext *aContext, gfxPoint aPt, gfxFont::DrawMode aDrawMode
|
||||
ShrinkToLigatureBoundaries(&ligatureRunStart, &ligatureRunEnd);
|
||||
|
||||
bool drawPartial = aDrawMode == gfxFont::GLYPH_FILL ||
|
||||
aDrawMode == gfxFont::GLYPH_PATH && aCallbacks;
|
||||
(aDrawMode == gfxFont::GLYPH_PATH && aCallbacks);
|
||||
|
||||
if (drawPartial) {
|
||||
DrawPartialLigature(font, aContext, start, ligatureRunStart, &pt,
|
||||
|
Loading…
Reference in New Issue
Block a user