# HG changeset patch # User Matti Hamalainen # Date 1526180382 -10800 # Node ID 8f06c23e197dee44dcc6585986f3926407406cfe # Parent 813244726b322758348b0c0ad88c9956efc593f4 Cosmetics. diff -r 813244726b32 -r 8f06c23e197d tools/ppl.c --- 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();