From ce4495589b3d64cf5c849c0dc3c538d92ede4a09 Mon Sep 17 00:00:00 2001 From: cambragol Date: Tue, 24 Jun 2025 14:39:36 +0900 Subject: [PATCH] Update window_manager.cc removed unneeded comments --- src/window_manager.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/window_manager.cc b/src/window_manager.cc index 2e070279..f0c86287 100644 --- a/src/window_manager.cc +++ b/src/window_manager.cc @@ -809,6 +809,8 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest) return; } + // CE: original code seems to have had special code for handling non-refresh-all for transparent updates, but it was incomplete and removed + // Initial rectangle list node representing the intersection of window and refresh areas refreshRectList = _rect_malloc(); if (refreshRectList == nullptr) { @@ -855,7 +857,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest) dest_pitch); } } else { - if (_buffering) { // note: _buffering appears to always be false + if (_buffering) { if (window->flags & WINDOW_TRANSPARENT) { window->blitProc( window->buffer + clipRect->rect.left - window->rect.left + (clipRect->rect.top - window->rect.top) * window->width, @@ -907,7 +909,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest) dest + dest_pitch * (clipRect->rect.top - rect->top) + clipRect->rect.left - rect->left, dest_pitch); } else { - if (_buffering) { // note: _buffering appears to always be false + if (_buffering) { blitBufferToBuffer(buf, width, height, @@ -929,7 +931,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest) while (screenRect) { nextRect = screenRect->next; - // if double-buffering, copy double buffer to screen (appears to always be false) + // if double-buffering, copy double buffer to screen if (_buffering && !dest) { _scr_blit( _screen_buffer + screenRect->rect.left + (_scr_size.right - _scr_size.left + 1) * screenRect->rect.top,