]> git.draconx.ca Git - rrace.git/blobdiff - src/xcounter.h
motif: Don't query widget width every timer update.
[rrace.git] / src / xcounter.h
index e08b8a8a6333fb9b1bc9d9302abfb6182328c0b1..112d485781adab0835a45f4fce4690f1035eab88 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Helpers for implementing a rapid-update counter display in Motif.
- * Copyright © 2022 Nick Bowler
+ * Copyright © 2022-2023 Nick Bowler
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -94,7 +94,8 @@ void xcounter_resize_cb(Widget w, void *data, void *cb_data);
 void xcounter_expose_cb(Widget w, void *data, void *cb_data);
 
 /*
- * Clear the margins of the counter after resizing the widget.
+ * Call after the widget is resized to update the internal dimensions,
+ * and clear the margins.
  *
  * Since the pre-rendered text never changes, this is all that is needed:
  * existing portions of the window do not need to be redrawn (except when