summaryrefslogtreecommitdiffstats
path: root/macosx/ttkMacOSXTheme.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-09-12 22:14:23 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-09-12 22:14:23 (GMT)
commit26d2f8ec042c3a1c076a64a8651aa88294ff6a0f (patch)
treee1f03e7dfb867fd6285de6d9f77658734b895a08 /macosx/ttkMacOSXTheme.c
parent0e615addeecefdcb56a2623a7a6fe871bb2d4c05 (diff)
downloadtk-26d2f8ec042c3a1c076a64a8651aa88294ff6a0f.zip
tk-26d2f8ec042c3a1c076a64a8651aa88294ff6a0f.tar.gz
tk-26d2f8ec042c3a1c076a64a8651aa88294ff6a0f.tar.bz2
Adjust comment styling.
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r--macosx/ttkMacOSXTheme.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 316d52e..a9c2195 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -2144,8 +2144,11 @@ static void TrackElementDraw(
Tcl_GetDoubleFromObj(NULL, elem->valueObj, &value);
factor = RangeToFactor(to);
- // HIThemeTrackDrawInfo uses 2-byte alignment; assign to separate
- // bounds variable to avoid UBSan (-fsanitize=alignment) complaint.
+ /*
+ * HIThemeTrackDrawInfo uses 2-byte alignment; assigning to a separate
+ * bounds variable avoids UBSan (-fsanitize=alignment) complaints.
+ */
+
CGRect bounds = BoxToRect(d, b);
HIThemeTrackDrawInfo info = {
.version = 0,
@@ -2285,8 +2288,11 @@ static void PbarElementDraw(
Tcl_GetIntFromObj(NULL, pbar->phaseObj, &phase);
factor = RangeToFactor(maximum);
- // HIThemeTrackDrawInfo uses 2-byte alignment; assign to separate
- // bounds variable to avoid UBSan (-fsanitize=alignment) complaint.
+ /*
+ * HIThemeTrackDrawInfo uses 2-byte alignment; assigning to a separate
+ * bounds variable avoids UBSan (-fsanitize=alignment) complaints.
+ */
+
CGRect bounds = BoxToRect(d, b);
HIThemeTrackDrawInfo info = {
.version = 0,