summaryrefslogtreecommitdiffhomepage
path: root/src/text.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/text.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/text.c')
-rw-r--r--src/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c
index f97b581d..74d5940b 100644
--- a/src/text.c
+++ b/src/text.c
@@ -53,7 +53,7 @@
#define MAX_FORMATTEXT_LENGTH 64
#define MAX_SUBTEXT_LENGTH 64
-#define BIT_CHECK(a,b) ((a) & (1<<(b)))
+#define BIT_CHECK(a,b) ((a) & (1 << (b)))
//----------------------------------------------------------------------------------
// Types and Structures Definition
@@ -948,7 +948,7 @@ static SpriteFont LoadTTF(const char *fileName, int fontSize, int numChars, int
return font;
}
- fread(ttfBuffer, 1, 1<<25, ttfFile);
+ fread(ttfBuffer, 1, 1 << 25, ttfFile);
if (fontChars[0] != 32) TraceLog(WARNING, "TTF spritefont loading: first character is not SPACE(32) character");
@@ -983,7 +983,7 @@ static SpriteFont LoadTTF(const char *fileName, int fontSize, int numChars, int
font.texture = LoadTextureFromImage(image);
- //WritePNG("generated_ttf_image.png", (unsigned char *)image.data, image.width, image.height, 2);
+ //SavePNG("generated_ttf_image.png", (unsigned char *)image.data, image.width, image.height, 2);
UnloadImage(image); // Unloads dataGrayAlpha