docs/README.md
author Sam Lantinga
Tue, 20 Oct 2020 11:51:23 -0700
changeset 14181 5e54294cae9e
parent 10811 8dd0da2a25b6
permissions -rw-r--r--
Fixed bug 5323 - SDL_SetWindowMaximumSize fails if Width or Height is equal to minimum Height or Width

batyastudios

Basicly there is problem and somewhat a solution: https://discourse.libsdl.org/t/setwindowmaximumsize-bug/28267

If you SDL_SetWindowMaximumSize() after SDL_SetWindowMinimumSize() with one of axes have the same value, function will have no effect.

This: (line 2144@SDL_video.c)
if (max_w <= window->min_w || max_h <= window->min_h) {
SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
return;
}

May be changed to this:
if (max_w < window->min_w || max_h < window->min_h) {
SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
return;
}
     1 Simple DirectMedia Layer {#mainpage}
     2 ========================
     3 
     4                                   (SDL)
     5 
     6                                 Version 2.0
     7 
     8 ---
     9 http://www.libsdl.org/
    10 
    11 Simple DirectMedia Layer is a cross-platform development library designed
    12 to provide low level access to audio, keyboard, mouse, joystick, and graphics
    13 hardware via OpenGL and Direct3D. It is used by video playback software,
    14 emulators, and popular games including Valve's award winning catalog
    15 and many Humble Bundle games.
    16 
    17 SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
    18 Support for other platforms may be found in the source code.
    19 
    20 SDL is written in C, works natively with C++, and there are bindings 
    21 available for several other languages, including C# and Python.
    22 
    23 This library is distributed under the zlib license, which can be found
    24 in the file "COPYING.txt".
    25 
    26 The best way to learn how to use SDL is to check out the header files in
    27 the "include" subdirectory and the programs in the "test" subdirectory.
    28 The header files and test programs are well commented and always up to date.
    29 
    30 More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/)
    31 
    32 - [Android](README-android.md)
    33 - [CMake](README-cmake.md)
    34 - [DirectFB](README-directfb.md)
    35 - [DynAPI](README-dynapi.md)
    36 - [Emscripten](README-emscripten.md)
    37 - [Gesture](README-gesture.md)
    38 - [Mercurial](README-hg.md)
    39 - [iOS](README-ios.md)
    40 - [Linux](README-linux.md)
    41 - [OS X](README-macosx.md)
    42 - [Native Client](README-nacl.md)
    43 - [Pandora](README-pandora.md)
    44 - [Supported Platforms](README-platforms.md)
    45 - [Porting information](README-porting.md)
    46 - [PSP](README-psp.md)
    47 - [Raspberry Pi](README-raspberrypi.md)
    48 - [Touch](README-touch.md)
    49 - [WinCE](README-wince.md)
    50 - [Windows](README-windows.md)
    51 - [WinRT](README-winrt.md)
    52 
    53 If you need help with the library, or just want to discuss SDL related
    54 issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php)
    55 
    56 If you want to report bugs or contribute patches, please submit them to
    57 [bugzilla](https://bugzilla.libsdl.org/)
    58 
    59 Enjoy!
    60 
    61 
    62 Sam Lantinga <mailto:slouken@libsdl.org>
    63