aboutsummaryrefslogtreecommitdiffstats
path: root/src/framebuffer.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-08 01:34:43 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-08 01:34:43 +0200
commit6e10b5d8eae9424b831b673e2ec63e9a64ecfe86 (patch)
treec8110ec031fbddc330776b960f659d8030f19d0d /src/framebuffer.h
parentdoc (diff)
downloadcrt-calibrator-6e10b5d8eae9424b831b673e2ec63e9a64ecfe86.tar.gz
crt-calibrator-6e10b5d8eae9424b831b673e2ec63e9a64ecfe86.tar.bz2
crt-calibrator-6e10b5d8eae9424b831b673e2ec63e9a64ecfe86.tar.xz
warnings + add state.c
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/framebuffer.h')
-rw-r--r--src/framebuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framebuffer.h b/src/framebuffer.h
index f6b99ea..872ff78 100644
--- a/src/framebuffer.h
+++ b/src/framebuffer.h
@@ -93,7 +93,7 @@ void fb_close(framebuffer_t* restrict fb);
* @param blue The blue component from [0, 255] sRGB
* @return The colour as one 32-bit integer
*/
-uint32_t fb_colour(int red, int green, int blue);
+uint32_t fb_colour(int red, int green, int blue) __attribute__((const));
/**
* Print a filled in rectangle to a framebuffer