@@ -739,6 +739,27 @@ procedure SDL_GetWindowSize(window: PSDL_Window; w: pcint; h: pcint); cdecl;
739
739
function SDL_GetWindowBordersSize (window: PSDL_Window; top, left, bottom, right: pcint): cint; cdecl;
740
740
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GetWindowBordersSize' { $ENDIF} { $ENDIF} ;
741
741
742
+ { **
743
+ * Get the size of a window in pixels.
744
+ *
745
+ * This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
746
+ * drawable, i.e. the window was created with `SDL_WINDOW_ALLOW_HIGHDPI` on a
747
+ * platform with high-DPI support (Apple calls this "Retina"), and not
748
+ * disabled by the `SDL_HINT_VIDEO_HIGHDPI_DISABLED` hint.
749
+ *
750
+ * \param window the window from which the drawable size should be queried
751
+ * \param w a pointer to variable for storing the width in pixels, may be NIL
752
+ * \param h a pointer to variable for storing the height in pixels, may be
753
+ * NIL
754
+ *
755
+ * \since This function is available since SDL 2.26.0.
756
+ *
757
+ * \sa SDL_CreateWindow
758
+ * \sa SDL_GetWindowSize
759
+ *}
760
+ procedure SDL_GetWindowSizeInPixels (window: PSDL_Window; w, h: pcuint); cdecl;
761
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GetWindowSizeInPixels' { $ENDIF} { $ENDIF} ;
762
+
742
763
{ **
743
764
* Set the minimum size of a window's client area.
744
765
*
0 commit comments