aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Surface.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-04-21 02:18:22 +0200
committerPierre Ossman <ossman@cendio.se>2024-06-24 14:22:35 +0200
commit12b3f4021641537b90727b23d42de5dff59006cd (patch)
treed494cda8c019a53989099a44b05aca2e0a4fff8a /vncviewer/Surface.h
parent4a71ac5bb79e3cd53499255f231c490fc9a5627b (diff)
downloadtigervnc-12b3f4021641537b90727b23d42de5dff59006cd.tar.gz
tigervnc-12b3f4021641537b90727b23d42de5dff59006cd.zip
Avoid shadowing variables
It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
Diffstat (limited to 'vncviewer/Surface.h')
-rw-r--r--vncviewer/Surface.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/vncviewer/Surface.h b/vncviewer/Surface.h
index 1cb87f50..60e452b1 100644
--- a/vncviewer/Surface.h
+++ b/vncviewer/Surface.h
@@ -41,11 +41,15 @@ public:
void clear(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255);
- void draw(int src_x, int src_y, int x, int y, int w, int h);
- void draw(Surface* dst, int src_x, int src_y, int x, int y, int w, int h);
+ void draw(int src_x, int src_y, int dst_x, int dst_y,
+ int dst_w, int dst_h);
+ void draw(Surface* dst, int src_x, int src_y, int dst_x, int dst_y,
+ int dst_w, int dst_h);
- void blend(int src_x, int src_y, int x, int y, int w, int h, int a=255);
- void blend(Surface* dst, int src_x, int src_y, int x, int y, int w, int h, int a=255);
+ void blend(int src_x, int src_y, int dst_x, int dst_y,
+ int dst_w, int dst_h, int a=255);
+ void blend(Surface* dst, int src_x, int src_y, int dst_x, int dst_y,
+ int dst_w, int dst_h, int a=255);
protected:
void alloc();