aboutsummaryrefslogtreecommitdiff
path: root/sway/border.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-29 23:07:20 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-30 00:47:58 +0200
commita87a5dbdd5cf748649dbe33c1c5072a6aec08929 (patch)
tree1d86782496f6678a57f5d5f50f1beff964e58891 /sway/border.c
parent5a13cb0ed136906a4370235214601b0129548c49 (diff)
Comment endianness
Diffstat (limited to 'sway/border.c')
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index 8c9106e4..872e8d34 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -10,13 +10,13 @@
void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
int endian = 1;
- if (*(char *)&endian == 1) {
+ if (*(char *)&endian == 1) { // little endian
cairo_set_source_rgba(cairo,
(color >> (1*8) & 0xFF) / 255.0,
(color >> (2*8) & 0xFF) / 255.0,
(color >> (3*8) & 0xFF) / 255.0,
(color >> (0*8) & 0xFF) / 255.0);
- } else {
+ } else { // big endian
cairo_set_source_rgba(cairo,
(color >> (0*8) & 0xFF) / 255.0,
(color >> (3*8) & 0xFF) / 255.0,