summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hdaps-tux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hdaps-tux.c b/hdaps-tux.c
index 1856040..9228883 100644
--- a/hdaps-tux.c
+++ b/hdaps-tux.c
@@ -99,15 +99,15 @@ int main(int argc, char *argv[])
SDL_SetColorKey(image, SDL_SRCCOLORKEY, SDL_MapRGB(image->format, 255, 255, 255));
/* Calculate and set initial position of tux (centre of the window) */
- tuxX = (W_WIDTH / 2) - (image->w / 2);
- tuxY = (W_HEIGHT / 2) - (image->h / 2);
+ tuxX = (W_WIDTH - image->w) / 2;
+ tuxY = (W_HEIGHT - image->h) / 2;
/* Get the hdaps position so we have something to start from */
get_pos(&hdapsX, &hdapsY);
while (!done) {
while (SDL_PollEvent(&event)) {
- switch(event.type) {
+ switch (event.type) {
case SDL_QUIT:
done = 1;
break;
block: Add a disk flag to block integrity profileMartin K. Petersen1-1/+7 2014-09-27block: Clean up the code used to generate and verify integrity metadataMartin K. Petersen1-50/+56 2014-09-27block: Deprecate the use of the term sector in the context of block integrityMartin K. Petersen1-23/+23 2014-09-27block: Remove integrity tagging functionsMartin K. Petersen1-65/+0 2014-09-27block: Replace bi_integrity with bi_specialMartin K. Petersen1-4/+4 2013-11-23bio-integrity: Convert to bvec_iterKent Overstreet1-14/+16 2013-05-02[SCSI] sd_dif: problem with verify of type 1 protection information (PI)Jeremy Higdon1-8/+0 2012-09-24[SCSI] sd: Avoid remapping bad reference tagsMartin K. Petersen1-19/+6 2012-03-20scsi: remove the second argument of k[un]map_atomic()Cong Wang1-6/+6 2012-03-05floppy/scsi: fix setting of BIO flagsMuthu Kumar1-1/+1 2010-10-15block: Make the integrity mapped property a bio flagMartin K. Petersen1-5/+6