Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 3, 2024
1 parent b8a110f commit efdc141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ bool GraphicManager::loadSpriteData(const FileName &datafile, wxString &error, w
fh.skip(size);
}
}
#undef safe_get
#undef safe_get
unloaded = false;
return true;
}
Expand Down
12 changes: 8 additions & 4 deletions source/map_drawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1992,10 +1992,14 @@ void MapDrawer::glBlitTexture(int sx, int sy, int textureId, int red, int green,
glBindTexture(GL_TEXTURE_2D, textureId);
glColor4ub(uint8_t(red), uint8_t(green), uint8_t(blue), uint8_t(alpha));
glBegin(GL_QUADS);
glTexCoord2f(0.f, 0.f); glVertex2f(sx, sy);
glTexCoord2f(1.f, 0.f); glVertex2f(sx + width, sy);
glTexCoord2f(1.f, 1.f); glVertex2f(sx + width, sy + height);
glTexCoord2f(0.f, 1.f); glVertex2f(sx, sy + height);
glTexCoord2f(0.f, 0.f);
glVertex2f(sx, sy);
glTexCoord2f(1.f, 0.f);
glVertex2f(sx + width, sy);
glTexCoord2f(1.f, 1.f);
glVertex2f(sx + width, sy + height);
glTexCoord2f(0.f, 1.f);
glVertex2f(sx, sy + height);
glEnd();
}

Expand Down

0 comments on commit efdc141

Please sign in to comment.