Skip to content

Commit

Permalink
Removed a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunnar Sletta committed May 9, 2011
1 parent aba3870 commit 79f2d3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/declarative/items/qsgcanvas.cpp
Expand Up @@ -729,6 +729,7 @@ void QSGCanvasPrivate::clearFocusInScope(QSGItem *scope, QSGItem *item, FocusOpt
{
Q_Q(QSGCanvas);

Q_UNUSED(item);
Q_ASSERT(item);
Q_ASSERT(scope);

Expand Down
10 changes: 6 additions & 4 deletions src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp
Expand Up @@ -238,9 +238,11 @@ static void drawTriangle(float *bits, int width, int height, const DFVertex *v1,
v1 = tmp;
}

// v1
// / \
// v3--v2
/*
v1
/ \
v3--v2
*/

int fromY = qMax(0, qCeil(v1->p.y));
int midY = qMin(height, qCeil(qMin(v2->p.y, v3->p.y)));
Expand Down Expand Up @@ -678,7 +680,7 @@ void QSGDistanceFieldGlyphCache::populate(int count, const glyph_t *glyphs)
{
for (int i = 0; i < count; ++i) {
glyph_t glyphIndex = glyphs[i];
if (glyphIndex >= glyphCount()) {
if ((int) glyphIndex >= glyphCount()) {
qWarning("Warning: distance-field glyph is not available with index %d", glyphIndex);
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/declarative/scenegraph/util/qsgtexturematerial.h
Expand Up @@ -81,8 +81,8 @@ class Q_DECLARATIVE_EXPORT QSGTextureMaterial : public QSGMaterial

uint m_filtering: 2;
uint m_mipmap_filtering: 2;
uint m_vertical_wrap: 1;
uint m_horizontal_wrap : 1;
uint m_vertical_wrap: 1;
};


Expand Down

0 comments on commit 79f2d3c

Please sign in to comment.