Mercurial > hg > dmlib
changeset 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 |
files | tools/64vw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/64vw.c Sun May 13 08:22:56 2018 +0300 +++ b/tools/64vw.c Sun May 13 08:23:34 2018 +0300 @@ -426,7 +426,7 @@ dmC64ImageFree(cimage); if (surf == NULL && (surf = SDL_CreateRGBSurfaceWithFormat(0, - 320, 200, 8, SDL_PIXELFORMAT_INDEX8)) == NULL) + C64_SCR_WIDTH, C64_SCR_HEIGHT, 8, SDL_PIXELFORMAT_INDEX8)) == NULL) { dmErrorMsg("Could not allocate surface.\n"); goto exit;