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
This commit is contained in:
raysan5 2016-12-27 17:37:35 +01:00
parent 3c91dc099d
commit e7464d5fc3
6 changed files with 32 additions and 73 deletions

View file

@ -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;