summaryrefslogtreecommitdiffstats
path: root/generic/tkbltGraph.h
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-21 09:20:28 (GMT)
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-21 11:40:48 (GMT)
commitf14d9dc7c790f40e897bf4f3afaacdde6509adac (patch)
tree9decc8ccfb18a38a94568feea8c9dc66e4ff6fd2 /generic/tkbltGraph.h
parent095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160 (diff)
downloadblt-f14d9dc7c790f40e897bf4f3afaacdde6509adac.zip
blt-f14d9dc7c790f40e897bf4f3afaacdde6509adac.tar.gz
blt-f14d9dc7c790f40e897bf4f3afaacdde6509adac.tar.bz2
Enforce explicit downcasting of numeric values
As part of the change, upgrade tkblt internal structures from short/float to int/double, as those are artifacts of the legacy code relying on X. Downcast to short at the latest stage: when interfacing with X.
Diffstat (limited to 'generic/tkbltGraph.h')
-rw-r--r--generic/tkbltGraph.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/generic/tkbltGraph.h b/generic/tkbltGraph.h
index b873823..6f8df01 100644
--- a/generic/tkbltGraph.h
+++ b/generic/tkbltGraph.h
@@ -72,12 +72,12 @@ namespace Blt {
} ClosestSearch;
typedef struct {
- short int width;
- short int height;
- short int axesOffset;
- short int axesTitleLength;
- short int maxTickWidth;
- short int maxTickHeight;
+ int width;
+ int height;
+ int axesOffset;
+ int axesTitleLength;
+ int maxTickWidth;
+ int maxTickHeight;
unsigned int nAxes;
Chain* axes;
int reqSize;
@@ -147,16 +147,16 @@ namespace Blt {
Postscript* postscript_;
int inset_;
- short int titleX_;
- short int titleY_;
- short int titleWidth_;
- short int titleHeight_;
+ int titleX_;
+ int titleY_;
+ int titleWidth_;
+ int titleHeight_;
int width_;
int height_;
- short int left_;
- short int right_;
- short int top_;
- short int bottom_;
+ int left_;
+ int right_;
+ int top_;
+ int bottom_;
Axis* focusPtr_;
int halo_;
GC drawGC_;
@@ -167,8 +167,8 @@ namespace Blt {
double vScale_;
double hScale_;
Pixmap cache_;
- short int cacheWidth_;
- short int cacheHeight_;
+ int cacheWidth_;
+ int cacheHeight_;
protected:
void layoutGraph();