aboutsummaryrefslogtreecommitdiff
path: root/c/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/resource.h')
-rw-r--r--c/resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/resource.h b/c/resource.h
index fe0daa7..8cf2230 100644
--- a/c/resource.h
+++ b/c/resource.h
@@ -12,6 +12,9 @@
#define ID_SUBGROUP(i) ((i) & 0xf000)
#define IDG_CTX_RATE 0x1000
+/* Index within resource group. */
+#define ID_INDEX(i) ((i) & 0x00ff)
+
/* Resources, timers, menus. */
#define IDR_STATUS 0x0100
#define IDR_TIMER 0x0101