summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:46 +0900
committerMichele Calgaro <[email protected]>2020-01-30 23:52:51 +0900
commit042a008f21b9f378f713ef622025f8b0ff8a1d6d (patch)
tree964a6acf2ceef96ce984fd19abb65c17247d2333
parent58e6d4df6e6d23f3b8598f3152895f06a44c24c3 (diff)
downloadgtk3-tqt-engine-042a008f21b9f378f713ef622025f8b0ff8a1d6d.tar.gz
gtk3-tqt-engine-042a008f21b9f378f713ef622025f8b0ff8a1d6d.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 42e3181d2de03ff5c544bc7b9b207347a15043da)
-rw-r--r--tdegtk/tqtcairopainter.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/tdegtk/tqtcairopainter.cpp b/tdegtk/tqtcairopainter.cpp
index dac2c72..e78fcee 100644
--- a/tdegtk/tqtcairopainter.cpp
+++ b/tdegtk/tqtcairopainter.cpp
@@ -62,7 +62,7 @@ inline int cairoPainterRectSubtraction(TQPen* pen) {
}
inline void standardAlphaToPremultipliedAlpha(unsigned char *a, unsigned char *r, unsigned char *g, unsigned char *b) {
- register double alpha_adjust;
+ double alpha_adjust;
alpha_adjust = (*a / 255.0);
*r = char( *r * alpha_adjust );
@@ -72,7 +72,7 @@ inline void standardAlphaToPremultipliedAlpha(unsigned char *a, unsigned char *r
}
inline void premultipliedAlphaToStandardAlpha(unsigned char *a, unsigned char *r, unsigned char *g, unsigned char *b) {
- register double alpha_adjust;
+ double alpha_adjust;
alpha_adjust = (*a / 255.0);
*r = char( *r / alpha_adjust );
@@ -180,9 +180,9 @@ void TQt3CairoPaintDevice::transferIntermediateSurface() {
cairo_surface_flush(m_surface);
cairo_surface_flush(m_intermediateSurface);
updateSurfaceDimensions();
- register int height = m_height;
- register int width = m_width;
- register int stride = cairo_format_stride_for_width(cairo_image_surface_get_format(m_surface), width);
+ int height = m_height;
+ int width = m_width;
+ int stride = cairo_format_stride_for_width(cairo_image_surface_get_format(m_surface), width);
cairo_surface_t *usableDeviceSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
cairo_t *copyPainter = cairo_create(usableDeviceSurface);
cairo_set_source_surface(copyPainter, m_surface, 0, 0);
@@ -192,21 +192,21 @@ void TQt3CairoPaintDevice::transferIntermediateSurface() {
cairo_destroy(copyPainter);
unsigned char* device_surface_data = cairo_image_surface_get_data(usableDeviceSurface);
unsigned char* intermediate_surface_data = cairo_image_surface_get_data(m_intermediateSurface);
- register int x;
- register int y;
- register long long offset;
- register unsigned char devicePixel_a;
- register unsigned char devicePixel_r;
- register unsigned char devicePixel_g;
- register unsigned char devicePixel_b;
- register unsigned char intermediatePixel_a;
- register unsigned char intermediatePixel_r;
- register unsigned char intermediatePixel_g;
- register unsigned char intermediatePixel_b;
- register unsigned char combinedPixel_a;
- register unsigned char combinedPixel_r;
- register unsigned char combinedPixel_g;
- register unsigned char combinedPixel_b;
+ int x;
+ int y;
+ long long offset;
+ unsigned char devicePixel_a;
+ unsigned char devicePixel_r;
+ unsigned char devicePixel_g;
+ unsigned char devicePixel_b;
+ unsigned char intermediatePixel_a;
+ unsigned char intermediatePixel_r;
+ unsigned char intermediatePixel_g;
+ unsigned char intermediatePixel_b;
+ unsigned char combinedPixel_a;
+ unsigned char combinedPixel_r;
+ unsigned char combinedPixel_g;
+ unsigned char combinedPixel_b;
// Execute the desired raster operation
// WARNING
// This is VERY SLOW