Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5296 → Rev 5297

/programs/games/LaserTank/trunk/render.cpp
25,7 → 25,7
for (int y = position.Y; y < position.Y + height; y++)
for (int x = position.X; x < position.X + width; x++)
if (x >= 0 && y >= 0 && x < this->width && y < this->height)
this->buffer[y * width + x] = img[(y - position.Y) * width + (x - position.X)];
this->buffer[y * this->width + x] = img[(y - position.Y) * width + (x - position.X)];
}
 
int CKosRender::getPixel(int x, int y)