diff options
Diffstat (limited to 'noatun-plugins/nexscope')
-rw-r--r-- | noatun-plugins/nexscope/input.cpp | 8 | ||||
-rw-r--r-- | noatun-plugins/nexscope/nex.cpp | 2 | ||||
-rw-r--r-- | noatun-plugins/nexscope/nex.h | 2 | ||||
-rw-r--r-- | noatun-plugins/nexscope/renderers.cpp | 14 |
4 files changed, 13 insertions, 13 deletions
diff --git a/noatun-plugins/nexscope/input.cpp b/noatun-plugins/nexscope/input.cpp index 791c7ab..6b3355b 100644 --- a/noatun-plugins/nexscope/input.cpp +++ b/noatun-plugins/nexscope/input.cpp @@ -94,21 +94,21 @@ void Input::getAudio(float **audio) std::vector<float> *left, *right; mScope->scopeData(left, right); - register float *inleft=&*left->begin(); - register float *inright=&*right->begin(); + float *inleft=&*left->begin(); + float *inright=&*right->begin(); int offset=0; if (mConvolve) { // find the offset - for (register int i=0; i<512+256; ++i) + for (int i=0; i<512+256; ++i) temp[i]=inleft[i]+inright[i]; offset=::convolve_match(haystack, temp, state); if (offset==-1) offset=0; inleft+=offset; inright+=offset; - for (register int i=0; i<512; ++i) + for (int i=0; i<512; ++i) { haystack[i]*=.5; haystack[i]+=temp[i+offset]; diff --git a/noatun-plugins/nexscope/nex.cpp b/noatun-plugins/nexscope/nex.cpp index 6d3cbd2..b8ba470 100644 --- a/noatun-plugins/nexscope/nex.cpp +++ b/noatun-plugins/nexscope/nex.cpp @@ -334,7 +334,7 @@ Bitmap *RendererList::render(float *pcm[4], Bitmap *source) while (d<end) { - register int dest=*d; + int dest=*d; if (dest && ((dest | *s) & 128)) { // there's danger of going past 0xFF diff --git a/noatun-plugins/nexscope/nex.h b/noatun-plugins/nexscope/nex.h index a97ae7f..55cb888 100644 --- a/noatun-plugins/nexscope/nex.h +++ b/noatun-plugins/nexscope/nex.h @@ -98,7 +98,7 @@ public: inline void drawVerticalLine(int x, int yBottom, int yTop, Pixel c) { - register int w=width; + int w=width; Pixel *d=mData+x+yTop*w; yBottom-=yTop; do diff --git a/noatun-plugins/nexscope/renderers.cpp b/noatun-plugins/nexscope/renderers.cpp index a0305ab..e296471 100644 --- a/noatun-plugins/nexscope/renderers.cpp +++ b/noatun-plugins/nexscope/renderers.cpp @@ -30,7 +30,7 @@ structQt::HorizontalPair : public Renderer } static inline void processV(int h, int start, int end, Bitmap *d, - float *ch, Pixel c, register bool solid) + float *ch, Pixel c, bool solid) { int oldx=(start+end)/2; int mid=oldx; @@ -50,7 +50,7 @@ structQt::HorizontalPair : public Renderer } static inline void processH(int h, int start, int end, Bitmap *d, - float *ch, Pixel c, register bool solid) + float *ch, Pixel c, bool solid) { int oldx=(start+end)/2; int mid=oldx; @@ -143,9 +143,9 @@ class Fade : public Renderer public: virtual Bitmap *render(float *[2], Bitmap *src) { - register int i=src->bytes()/sizeof(Pixel); + int i=src->bytes()/sizeof(Pixel); - register Pixel *d=src->pixels(); + Pixel *d=src->pixels(); do { *d -= ((*d & 0xf0f0f0f0) >> 4) + @@ -208,8 +208,8 @@ struct Blur : public Renderer { Bitmap *b=nex->bitmapPool()->get(); - register Byte *buffer=(Byte*)b->pixels(); - register unsigned short pitch=width*sizeof(Pixel); + Byte *buffer=(Byte*)b->pixels(); + unsigned short pitch=width*sizeof(Pixel); // skip the first row buffer+=pitch; @@ -218,7 +218,7 @@ struct Blur : public Renderer buffer+=sizeof(Pixel); // we also don't want to do the last row - register Pixel *end=b->lastPixel(); + Pixel *end=b->lastPixel(); end-=pitch; // and the last pixel on the second-to-last row end-=sizeof(Pixel); |