From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/windows/SDL_windowsframebuffer.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/source/src/video/windows/SDL_windowsframebuffer.c b/source/src/video/windows/SDL_windowsframebuffer.c
index 509233e..2ad2edd 100644
--- a/source/src/video/windows/SDL_windowsframebuffer.c
+++ b/source/src/video/windows/SDL_windowsframebuffer.c
@@ -99,8 +99,12 @@
int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+ int i;
- BitBlt(data->hdc, 0, 0, window->w, window->h, data->mdc, 0, 0, SRCCOPY);
+ for (i = 0; i < numrects; ++i) {
+ BitBlt(data->hdc, rects[i].x, rects[i].y, rects[i].w, rects[i].h,
+ data->mdc, rects[i].x, rects[i].y, SRCCOPY);
+ }
return 0;
}
--
Gitblit v1.9.3