Просмотр исходного кода

Added notes about delayed clipboard rendering on Windows

Sam Lantinga 2 лет назад
Родитель
Сommit
badb7f1e8b
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/video/windows/SDL_windowsclipboard.c

+ 5 - 0
src/video/windows/SDL_windowsclipboard.c

@@ -220,6 +220,11 @@ int WIN_SetClipboardData(SDL_VideoDevice *_this)
     size_t i;
     size_t i;
     int result = 0;
     int result = 0;
 
 
+    /* I investigated delayed clipboard rendering, and at least with text and image
+     * formats you have to use an output window, not SDL_HelperWindow, and the system
+     * requests them being rendered immediately, so there isn't any benefit.
+     */
+
     if (WIN_OpenClipboard(_this)) {
     if (WIN_OpenClipboard(_this)) {
         EmptyClipboard();
         EmptyClipboard();