summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-12-27 17:37:35 +0100
committerraysan5 <[email protected]>2016-12-27 17:37:35 +0100
commite7464d5fc376783912da9086a4bf49d2d5759135 (patch)
tree4146e30a8e3c143b4c5ff541e045bc915a8d1d5e /src/core.c
parent3c91dc099dcee1457207c15c30da61c1b279c554 (diff)
downloadraylib-e7464d5fc376783912da9086a4bf49d2d5759135.tar.gz
raylib-e7464d5fc376783912da9086a4bf49d2d5759135.zip
Review some formatting and naming
- Renamed WritePNG() to SavePNG() for consistency with other file loading functions - Renamed WriteBitmap() to SaveBMP() for consistency with other file loading functions - Redesigned SaveBMP() to use stb_image_write
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index a210df56..147010f5 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2139,7 +2139,7 @@ static void TakeScreenshot(void)
sprintf(buffer, "screenshot%03i.png", shotNum);
// Save image as PNG
- WritePNG(buffer, imgData, renderWidth, renderHeight, 4);
+ SavePNG(buffer, imgData, renderWidth, renderHeight, 4);
free(imgData);
@@ -2818,7 +2818,8 @@ static void InitMouse(void)
// if too much time passes between reads, queue gets full and new events override older ones...
static void *MouseThread(void *arg)
{
- const unsigned char XSIGN = 1<<4, YSIGN = 1<<5;
+ const unsigned char XSIGN = (1 << 4);
+ const unsigned char YSIGN = (1 << 5);
typedef struct {
char buttons;