From d2ca038e2ac6afd0e01ec7da485092c9c9ed5386 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 24 Sep 2024 10:42:49 -0600 Subject: [PATCH] Actually let's not --- examples/X11/X11.cpp | 4 ++-- examples/win32/Win32.cpp | 4 ++-- src/SFML/Graphics/GLCheck.hpp | 2 +- src/SFML/Window/DRM/DRMContext.cpp | 2 +- src/SFML/Window/EGLCheck.hpp | 2 +- src/SFML/Window/Win32/WglContext.cpp | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/X11/X11.cpp b/examples/X11/X11.cpp index 18ba018d7..18ae46093 100644 --- a/examples/X11/X11.cpp +++ b/examples/X11/X11.cpp @@ -167,7 +167,7 @@ int main() // Get the default screen const int screen = DefaultScreen(display); - // Let's create the main window + // Create the main window XSetWindowAttributes attributes; attributes.background_pixel = BlackPixel(display, screen); attributes.event_mask = KeyPressMask; @@ -189,7 +189,7 @@ int main() // Set the window's name XStoreName(display, window, "SFML Window"); - // Let's create the windows which will serve as containers for our SFML views + // Create the windows which will serve as containers for our SFML views const Window view1 = XCreateWindow(display, window, 10, diff --git a/examples/win32/Win32.cpp b/examples/win32/Win32.cpp index b5c9f9e63..401a8cbf2 100644 --- a/examples/win32/Win32.cpp +++ b/examples/win32/Win32.cpp @@ -68,7 +68,7 @@ int main() windowClass.lpszClassName = TEXT("SFML App"); RegisterClass(&windowClass); - // Let's create the main window + // Create the main window HWND window = CreateWindow(TEXT("SFML App"), TEXT("SFML Win32"), WS_SYSMENU | WS_VISIBLE, @@ -84,7 +84,7 @@ int main() // Add a button for exiting button = CreateWindow(TEXT("BUTTON"), TEXT("Quit"), WS_CHILD | WS_VISIBLE, 560, 440, 80, 40, window, nullptr, instance, nullptr); - // Let's create two SFML views + // Create two SFML views HWND view1 = CreateWindow(TEXT("STATIC"), nullptr, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, diff --git a/src/SFML/Graphics/GLCheck.hpp b/src/SFML/Graphics/GLCheck.hpp index 023ac6316..2f289bc5d 100644 --- a/src/SFML/Graphics/GLCheck.hpp +++ b/src/SFML/Graphics/GLCheck.hpp @@ -48,7 +48,7 @@ namespace sf::priv bool glCheckError(const std::filesystem::path& file, unsigned int line, std::string_view expression); //////////////////////////////////////////////////////////// -/// Let's define a macro to quickly check every OpenGL API call +/// Define a macro to quickly check every OpenGL API call //////////////////////////////////////////////////////////// #ifdef SFML_DEBUG // In debug mode, perform a test on every OpenGL call diff --git a/src/SFML/Window/DRM/DRMContext.cpp b/src/SFML/Window/DRM/DRMContext.cpp index 7d004ac0d..caa73a989 100644 --- a/src/SFML/Window/DRM/DRMContext.cpp +++ b/src/SFML/Window/DRM/DRMContext.cpp @@ -418,7 +418,7 @@ int initDrm(sf::priv::Drm& drm, const char* device, const char* modeStr, unsigne // Get original display mode so we can restore display mode after program exits drm.originalCrtc = drmModeGetCrtc(drm.fileDescriptor, drm.crtcId); - // Let's use the current mode rather than the preferred one if the user didn't specify a mode with env vars + // Use the current mode rather than the preferred one if the user didn't specify a mode with env vars if (!drm.mode) { #ifdef SFML_DEBUG diff --git a/src/SFML/Window/EGLCheck.hpp b/src/SFML/Window/EGLCheck.hpp index 9376b38e6..bf84b1120 100644 --- a/src/SFML/Window/EGLCheck.hpp +++ b/src/SFML/Window/EGLCheck.hpp @@ -48,7 +48,7 @@ namespace sf::priv bool eglCheckError(const std::filesystem::path& file, unsigned int line, std::string_view expression); //////////////////////////////////////////////////////////// -/// Let's define a macro to quickly check every EGL API call +/// Define a macro to quickly check every EGL API call //////////////////////////////////////////////////////////// #ifdef SFML_DEBUG diff --git a/src/SFML/Window/Win32/WglContext.cpp b/src/SFML/Window/Win32/WglContext.cpp index e550ed36e..ac9d8325e 100644 --- a/src/SFML/Window/Win32/WglContext.cpp +++ b/src/SFML/Window/Win32/WglContext.cpp @@ -290,7 +290,7 @@ int WglContext::selectBestPixelFormat(HDC deviceContext, unsigned int bitsPerPix WglContextImpl::ensureInit(); - // Let's find a suitable pixel format -- first try with wglChoosePixelFormatARB + // Find a suitable pixel format -- first try with wglChoosePixelFormatARB int bestFormat = 0; if (SF_GLAD_WGL_ARB_pixel_format) { @@ -306,7 +306,7 @@ int WglContext::selectBestPixelFormat(HDC deviceContext, unsigned int bitsPerPix 0, 0}; - // Let's check how many formats are supporting our requirements + // Check how many formats are supporting our requirements int formats[512]; UINT nbFormats = 0; // We must initialize to 0 otherwise broken drivers might fill with garbage in the following call const bool isValid = wglChoosePixelFormatARB(deviceContext, intAttributes, nullptr, 512, formats, &nbFormats) != FALSE;