Skip to content

Commit

Permalink
Actually let's not
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Sep 26, 2024
1 parent 9d1e5d9 commit d2ca038
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/X11/X11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions examples/win32/Win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/SFML/Graphics/GLCheck.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/SFML/Window/DRM/DRMContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/SFML/Window/EGLCheck.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/SFML/Window/Win32/WglContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit d2ca038

Please sign in to comment.