Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyxx committed Oct 17, 2014
1 parent 73d2441 commit 249b9c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ void Game::doMenu() {
drawSceneObjectMesh(so->polygonsData, so->verticesData, so->verticesCount);
_render->endObjectDraw();

_render->setupProjection2d();
const int option = (((so->pitch + 512) & 1023) + 64) / 128;
if (getMessage(o->objKey, option, &_tmpMsg)) {
memset(&_drawCharBuf, 0, sizeof(_drawCharBuf));
Expand Down
1 change: 1 addition & 0 deletions render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static GLfloat *bufferVertex(const Vertex *vertices, int count) {
static void emitQuad2i(int x, int y, int w, int h) {
#ifdef USE_GLES
GLfloat vertices[] = { x, y, x + w, y, x + w, y + h, x, y + h };
glVertexPointer(2, GL_FLOAT, 0, vertices);
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
#else
glBegin(GL_QUADS);
Expand Down
2 changes: 1 addition & 1 deletion spritecache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void SpriteCache::flush() {
for (int i = 0; i < ARRAYSIZE(_entries); ++i) {
free(_entries[i].data);
}
memset(&_entries, 0, sizeof(_entries));
memset(_entries, 0, sizeof(_entries));
}

uint8_t *SpriteCache::getData(int16_t key, const uint8_t *src) {
Expand Down

0 comments on commit 249b9c7

Please sign in to comment.