Browse Source

os2: updates from Andrey Vasilkin's 2020-09-07 sources.

Ozkan Sezer 4 years ago
parent
commit
1b99d805db
3 changed files with 4 additions and 5 deletions
  1. 2 2
      src/video/os2/SDL_os2util.c
  2. 0 2
      src/video/os2/SDL_os2util.h
  3. 2 1
      src/video/os2/SDL_os2video.c

+ 2 - 2
src/video/os2/SDL_os2util.c

@@ -49,9 +49,9 @@ HPOINTER utilCreatePointer(SDL_Surface *surface, ULONG ulHotX, ULONG ulHotY)
     return NULLHANDLE;
   }
 
-  // pulDst - last line of surface (image) part of the result bitmap's
+  // pulDst - last line of surface (image) part of the result bitmap
   pulDst = &pulBitmap[ (surface->h - 1) * surface->w ];
-  // pulDstMask - last line of mask part of the result bitmap's
+  // pulDstMask - last line of mask part of the result bitmap
   pulDstMask = &pulBitmap[ (2 * surface->h - 1) * surface->w ];
   // pulSrc - first line of source image
   pulSrc = (PULONG)surface->pixels;

+ 0 - 2
src/video/os2/SDL_os2util.h

@@ -30,8 +30,6 @@
 #define INCL_GPI
 #include <os2.h>
 
-/*#define debug(s,...) SDL_LogDebug( SDL_LOG_CATEGORY_VIDEO, __func__"(): "##s, ##__VA_ARGS__ )*/
-
 HPOINTER utilCreatePointer(SDL_Surface *surface, ULONG ulHotX, ULONG ulHotY);
 
 #endif /* _SDL_os2util_h */

+ 2 - 1
src/video/os2/SDL_os2video.c

@@ -1677,7 +1677,8 @@ static int OS2_GetDisplayDPI(_THIS, SDL_VideoDisplay *display, float *ddpi,
 
 static void OS2_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
 {
-  debug( "Enter" );
+//  debug( "Enter" );
+  SDL_AddDisplayMode( display, &display->current_mode );
 }
 
 static int OS2_SetDisplayMode(_THIS, SDL_VideoDisplay *display,