Skip to content

Commit

Permalink
Preincrement when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Oct 4, 2024
1 parent c92405e commit f1cda1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SFML/Window/DRM/DRMContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ namespace sf::priv
////////////////////////////////////////////////////////////
DRMContext::DRMContext(DRMContext* shared)
{
contextCount++;
++contextCount;

// Get the initialized EGL display
m_display = getInitializedDisplay();
Expand All @@ -533,7 +533,7 @@ DRMContext::DRMContext(DRMContext* shared)
////////////////////////////////////////////////////////////
DRMContext::DRMContext(DRMContext* shared, const ContextSettings& settings, const WindowImpl& owner, unsigned int bitsPerPixel)
{
contextCount++;
++contextCount;

// Get the initialized EGL display
m_display = getInitializedDisplay();
Expand All @@ -553,7 +553,7 @@ DRMContext::DRMContext(DRMContext* shared, const ContextSettings& settings, cons
////////////////////////////////////////////////////////////
DRMContext::DRMContext(DRMContext* shared, const ContextSettings& settings, Vector2u size)
{
contextCount++;
++contextCount;

// Get the initialized EGL display
m_display = getInitializedDisplay();
Expand Down

0 comments on commit f1cda1a

Please sign in to comment.