summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/blurscope/scopedisplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/blurscope/scopedisplayer.cpp')
-rw-r--r--noatun-plugins/blurscope/scopedisplayer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/noatun-plugins/blurscope/scopedisplayer.cpp b/noatun-plugins/blurscope/scopedisplayer.cpp
index 42b375a..4abc188 100644
--- a/noatun-plugins/blurscope/scopedisplayer.cpp
+++ b/noatun-plugins/blurscope/scopedisplayer.cpp
@@ -37,7 +37,7 @@ inline void Bitmap<Type>::addPixel(int x, int y, int br1, int br2)
{
if (x < 0 || x >= width || y < 0 || y >= height) return;
- register unsigned char *p = output+x*2+y*width*2;
+ unsigned char *p = output+x*2+y*width*2;
if (p[0] < 255-br1) p[0] += br1; else p[0] = 255;
if (p[1] < 255-br2) p[1] += br2; else p[1] = 255;
}
@@ -64,7 +64,7 @@ void Bitmap<Type>::addVertLine(int x, int y1, int y2, int br1, int br2)
template <class Type>
void Bitmap<Type>::fadeStar()
{
- register unsigned long *ptr = (unsigned long*)output;
+ unsigned long *ptr = (unsigned long*)output;
int i = width*height*2/4;
do
{
@@ -238,7 +238,7 @@ void SDLView::repaint()
SDL_LockSurface(surface);
TEST();
- register unsigned long *ptr2 = (unsigned long*)output2;
+ unsigned long *ptr2 = (unsigned long*)output2;
unsigned long *ptr1 = (unsigned long*)( surface->pixels );
int i = width*height/4;
TEST();
@@ -246,12 +246,12 @@ void SDLView::repaint()
do {
// Asger Alstrup Nielsen's ([email protected])
// optimized 32 bit screen loop
- register unsigned int const r1 = *(ptr2++);
- register unsigned int const r2 = *(ptr2++);
+ unsigned int const r1 = *(ptr2++);
+ unsigned int const r2 = *(ptr2++);
//if (r1 || r2) {
#ifdef LITTLEENDIAN
- register unsigned int const v =
+ unsigned int const v =
((r1 & 0x000000f0ul) >> 4)
| ((r1 & 0x0000f000ul) >> 8)
| ((r1 & 0x00f00000ul) >> 12)
@@ -262,7 +262,7 @@ void SDLView::repaint()
| ((r2 & 0x00f00000ul) << 4)
| ((r2 & 0xf0000000ul)));
#else
- register unsigned int const v =
+ unsigned int const v =
((r2 & 0x000000f0ul) >> 4)
| ((r2 & 0x0000f000ul) >> 8)
| ((r2 & 0x00f00000ul) >> 12)