From: Matthijs Kooijman Date: Mon, 11 Jun 2007 21:10:55 +0000 (+0200) Subject: * Use white as colour for blitting sprites, so they look normal. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=commitdiff_plain;h=c858b6b4ba3ec3262255baef5659f632efb3bf9f * Use white as colour for blitting sprites, so they look normal. --- diff --git a/ABM2/Playground.cpp b/ABM2/Playground.cpp index 5491025..358262f 100755 --- a/ABM2/Playground.cpp +++ b/ABM2/Playground.cpp @@ -128,7 +128,7 @@ void Playground::Update() { CMMPointer s = this->getKernel()->getSpriteManager()->getSprite(SPR_FIELD); - s->blit(0, 0, 1.0, 1.0, 0, 0, COLOUR_RGBA(0, 0, 255, 255)); + s->blit(0, 0, 1.0, 1.0, 0, 0, COLOUR_RGBA(255, 255, 255, 255)); for (int i=0; isprite->blit( PLAYGROUND_BORDER_LEFT + this->col * FIELD_UNIT_WIDTH, PLAYGROUND_BORDER_TOP + this->row * FIELD_UNIT_HEIGHT, - 1.0, 1.0, this->subsprite, 0, COLOUR_RGBA(0, 0, 0, 255) + 1.0, 1.0, this->subsprite, 0, COLOUR_RGBA(255, 255, 255, 255) ); #ifdef WIN32 D3DXVECTOR3 center(0.0f, 0.0f, 0.0f); // center at the upper-left corner