summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-03 21:48:35 +0200
committerraysan5 <[email protected]>2021-07-03 21:48:35 +0200
commitc15d08d6ecb50d438e70187fab77f9b7b65083fb (patch)
tree437ca0609b8cda9696a50cb3b2580b63fa76b537 /src
parentf8753bda01c34fc649a9ae436db4df576ffbe0cc (diff)
downloadraylib-c15d08d6ecb50d438e70187fab77f9b7b65083fb.tar.gz
raylib-c15d08d6ecb50d438e70187fab77f9b7b65083fb.zip
Review some comments
Diffstat (limited to 'src')
-rw-r--r--src/core.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/core.c b/src/core.c
index c07c349d..12cfb735 100644
--- a/src/core.c
+++ b/src/core.c
@@ -363,15 +363,15 @@ typedef struct CoreData {
#endif
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM) || defined(PLATFORM_UWP)
#if defined(PLATFORM_DRM)
- int fd; // /dev/dri/... file descriptor
+ int fd; // File descriptor for /dev/dri/...
drmModeConnector *connector; // Direct Rendering Manager (DRM) mode connector
- int modeIndex; // index of the used mode of connector->modes
- drmModeCrtc *crtc; // crt controller
- struct gbm_device *gbmDevice; // device of Generic Buffer Management (GBM, native platform for EGL on DRM)
- struct gbm_surface *gbmSurface; // surface of GBM
- struct gbm_bo *prevBO; // previous used GBM buffer object (during frame swapping)
- uint32_t prevFB; // previous used GBM framebufer (during frame swapping)
-#endif
+ int modeIndex; // Index of the used mode of connector->modes
+ drmModeCrtc *crtc; // CRT controller
+ struct gbm_device *gbmDevice; // GBM device (Generic Buffer Management, native platform for EGL on DRM)
+ struct gbm_surface *gbmSurface; // GBM surface
+ struct gbm_bo *prevBO; // Previous GBM buffer object (during frame swapping)
+ uint32_t prevFB; // Previous GBM framebufer (during frame swapping)
+#endif // PLATFORM_DRM
EGLDisplay device; // Native display device (physical screen connection)
EGLSurface surface; // Surface to draw on, framebuffers (connected to context)
EGLContext context; // Graphic context, mode in which drawing can be done
@@ -2687,8 +2687,6 @@ void SetConfigFlags(unsigned int flags)
// NOTE TRACELOG() function is located in [utils.h]
// Takes a screenshot of current screen (saved a .png)
-// NOTE: This function could work in any platform but some platforms: PLATFORM_ANDROID and PLATFORM_WEB
-// have their own internal file-systems, to dowload image to user file-system some additional mechanism is required
void TakeScreenshot(const char *fileName)
{
unsigned char *imgData = rlReadScreenPixels(CORE.Window.render.width, CORE.Window.render.height);