diff options
| author | raysan5 <[email protected]> | 2016-12-27 17:37:35 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-12-27 17:37:35 +0100 |
| commit | e7464d5fc376783912da9086a4bf49d2d5759135 (patch) | |
| tree | 4146e30a8e3c143b4c5ff541e045bc915a8d1d5e /src/core.c | |
| parent | 3c91dc099dcee1457207c15c30da61c1b279c554 (diff) | |
| download | raylib-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |
