mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 16:28:14 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user