no message

This commit is contained in:
BADIM-PC\Vadim
2017-11-30 13:10:20 +03:00
parent f578428381
commit e3ad17f609
7 changed files with 46 additions and 25 deletions

View File

@@ -142,7 +142,7 @@ int main(int argc, char **argv)
void* pixels = NULL;
int pitch = 0;
SDL_LockTexture(texture, NULL, &pixels, &pitch);
SDL_memcpy(pixels, tic->screen, sizeof tic->screen);
SDL_memcpy(pixels, tic->screen, TIC80_FULLWIDTH * TIC80_FULLHEIGHT);
SDL_UnlockTexture(texture);
SDL_RenderCopy(renderer, texture, NULL, NULL);
}