Mercurial > hg > dmlib
changeset 1556:8f06c23e197d last_SDL1
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 May 2018 05:59:42 +0300 |
parents | 813244726b32 |
children | 5e5f75b45f8d |
files | tools/ppl.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/ppl.c Sun May 13 05:58:41 2018 +0300 +++ b/tools/ppl.c Sun May 13 05:59:42 2018 +0300 @@ -25,6 +25,7 @@ BOOL exitFlag; SDL_Surface *screen; SDL_Event event; + int optScrWidth, optScrHeight, optVFlags, optScrDepth; int actChannel; @@ -228,13 +229,12 @@ return; int xc, ym = y0 + (y1 - y0) / 2, vol = FP_GETH32(chn->chVolume); - int pitch = screen->pitch / sizeof(Uint32); + DMFixedPoint offs = chn->chPos; int len = FP_GETH32(chn->chSize); - DMFixedPoint offs = chn->chPos; + Uint32 pitch = screen->pitch / sizeof(Uint32); Uint32 *pix = screen->pixels; Sint16 *data = chn->chData; - dmFillBox3D(screen, x0, y0, x1, y1, (chn->chMute ? col.muted : col.black), nchannel == engine.actChannel ? col.red : col.box2, @@ -691,7 +691,6 @@ SDL_UnlockAudio(); int currTick, prevTick = 0, prevRow = -1; - while (!engine.exitFlag) { currTick = SDL_GetTicks();