summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-12-15 13:44:31 +0100
committerRay San <[email protected]>2017-12-15 13:44:31 +0100
commit53ad53d05127ac083f7439c5c2e1c2ab5e73e1c0 (patch)
tree492c374df9119066271b8e9d84f27901479d8ec9 /src/core.c
parentbcdde6c65af3eee20ce3a142eec800dece759c17 (diff)
downloadraylib-53ad53d05127ac083f7439c5c2e1c2ab5e73e1c0.tar.gz
raylib-53ad53d05127ac083f7439c5c2e1c2ab5e73e1c0.zip
Manually review previous PR
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/core.c b/src/core.c
index 8e26d2b1..ec7db978 100644
--- a/src/core.c
+++ b/src/core.c
@@ -153,9 +153,8 @@
//#define GLFW_DLL // Using GLFW DLL on Windows -> No, we use static version!
#if !defined(SUPPORT_BUSY_WAIT_LOOP) && defined(_WIN32)
- // NOTE: Those functions require linking with winmm library
- unsigned int __stdcall timeBeginPeriod(unsigned int uPeriod);
- unsigned int __stdcall timeEndPeriod(unsigned int uPeriod);
+ __stdcall unsigned int timeBeginPeriod(unsigned int uPeriod);
+ __stdcall unsigned int timeEndPeriod(unsigned int uPeriod);
#endif
#endif
@@ -352,7 +351,7 @@ extern void UnloadDefaultFont(void); // [Module: text] Unloads default fo
static void InitGraphicsDevice(int width, int height); // Initialize graphics device
static void SetupFramebufferSize(int displayWidth, int displayHeight);
static void InitTimer(void); // Initialize timer
- double GetTime(void); // Returns time since InitTimer() was run
+static double GetTime(void); // Returns time since InitTimer() was run
static void Wait(float ms); // Wait for some milliseconds (stop program execution)
static bool GetKeyStatus(int key); // Returns if a key has been pressed
static bool GetMouseButtonStatus(int button); // Returns if a mouse button has been pressed
@@ -413,7 +412,7 @@ static void *GamepadThread(void *arg); // Mouse reading thread
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) || defined(PLATFORM_WEB)
// Initialize window and OpenGL context
// NOTE: data parameter could be used to pass any kind of required data to the initialization
-void InitRLWindow(int width, int height, void *data)
+void InitWindow(int width, int height, void *data)
{
TraceLog(LOG_INFO, "Initializing raylib (v1.9-dev)");
@@ -477,7 +476,7 @@ void InitRLWindow(int width, int height, void *data)
#if defined(PLATFORM_ANDROID)
// Initialize window and OpenGL context (and Android activity)
// NOTE: data parameter could be used to pass any kind of required data to the initialization
-void InitRLWindow(int width, int height, void *data)
+void InitWindow(int width, int height, void *data)
{
TraceLog(LOG_INFO, "Initializing raylib (v1.9-dev)");
@@ -538,7 +537,7 @@ void InitRLWindow(int width, int height, void *data)
#endif
// Close window and unload OpenGL context
-void CloseRLWindow(void)
+void CloseWindow(void)
{
#if defined(SUPPORT_GIF_RECORDING)
if (gifRecording)
@@ -715,7 +714,7 @@ int GetScreenHeight(void)
}
// Show mouse cursor
-void ShowRLCursor()
+void ShowCursor()
{
#if defined(PLATFORM_DESKTOP)
#if defined(__linux__)
@@ -728,7 +727,7 @@ void ShowRLCursor()
}
// Hides mouse cursor
-void HideRLCursor()
+void HideCursor()
{
#if defined(PLATFORM_DESKTOP)
#if defined(__linux__)
@@ -1135,7 +1134,7 @@ void SetConfigFlags(char flags)
// Takes a screenshot of current screen (saved a .png)
void TakeScreenshot(const char *fileName)
{
-#if (defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)) && defined(SUPPORT_SAVE_PNG)
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
unsigned char *imgData = rlReadScreenPixels(renderWidth, renderHeight);
SavePNG(fileName, imgData, renderWidth, renderHeight, 4); // Save image as PNG
free(imgData);
@@ -2120,7 +2119,7 @@ static void InitTimer(void)
}
// Get current time measure (in seconds) since InitTimer()
-double GetTime(void)
+static double GetTime(void)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
return glfwGetTime();