summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/renderers.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:40 +0900
commit57ef93c0c479addaa00d9a0cb9ba627dc8599fc5 (patch)
treedffa54e004224aa825f2159330b735345fbcd572 /noatun-plugins/nexscope/renderers.cpp
parentc75b807cca6bd83ae536655ca17a13fcaf0ad1c9 (diff)
downloadtdeaddons-57ef93c0c479addaa00d9a0cb9ba627dc8599fc5.tar.gz
tdeaddons-57ef93c0c479addaa00d9a0cb9ba627dc8599fc5.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'noatun-plugins/nexscope/renderers.cpp')
-rw-r--r--noatun-plugins/nexscope/renderers.cpp14
1 files changed, 7 insertions, 7 deletions
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);