Actually let's not

This commit is contained in:
Chris Thrasher 2024-09-24 10:42:49 -06:00
parent 9d1e5d9acf
commit d2ca038e2a
6 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;