Skip to content

Commit 5553517

Browse files
committed
Fix unnecessary canvas re-buffering
1 parent cee1954 commit 5553517

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

applications/windowserver/src/components/canvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void canvas_t::createNewBuffer(g_rectangle& bounds, int width, int height)
9898
uint32_t bufferSize = pages * G_PAGE_SIZE;
9999

100100
g_mutex_acquire(bufferLock);
101-
if(pages < buffer.pages)
101+
if(pages <= buffer.pages)
102102
{
103103
g_mutex_release(bufferLock);
104104
return;

kernel/inc/build_config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// version
4949
#define G_VERSION_MAJOR 0
5050
#define G_VERSION_MINOR 22
51-
#define G_VERSION_PATCH 2
51+
#define G_VERSION_PATCH 3
5252

5353
#define G_LOADER_VERSION_MAJOR 1
5454
#define G_LOADER_VERSION_MINOR 1

0 commit comments

Comments
 (0)