comparison tools/64vw.c @ 1571:ad771e94af25

Use C64_SCR_* constants instead of hardcoded number values in creating surface.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 08:23:34 +0300
parents 04769fa39dd4
children 4643cd757c0b
comparison
equal deleted inserted replaced
1570:04769fa39dd4 1571:ad771e94af25
424 424
425 fail: 425 fail:
426 dmC64ImageFree(cimage); 426 dmC64ImageFree(cimage);
427 427
428 if (surf == NULL && (surf = SDL_CreateRGBSurfaceWithFormat(0, 428 if (surf == NULL && (surf = SDL_CreateRGBSurfaceWithFormat(0,
429 320, 200, 8, SDL_PIXELFORMAT_INDEX8)) == NULL) 429 C64_SCR_WIDTH, C64_SCR_HEIGHT, 8, SDL_PIXELFORMAT_INDEX8)) == NULL)
430 { 430 {
431 dmErrorMsg("Could not allocate surface.\n"); 431 dmErrorMsg("Could not allocate surface.\n");
432 goto exit; 432 goto exit;
433 } 433 }
434 434