1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00
Go to file
Zsolt Sz. Sztupák e6f1ab6539 Fix SDL letterboxing on Android builds
On Android calling `SDL_RenderSetLogicalSize` with dimensions having a different aspect ratio than the screen will cause letterboxing with blinking garbage data in that areas (instead of having black bars). This is annoying and makes the game really hard to play.

This change will make sure that on Android `SDL_RenderSetLogicalSize` will always be called with dimensions where the aspect ratio is the same as the screen to make sure there is no letterboxing.

The only problem with this is that during drawing the adventure map nothing will clear out the areas that would have been letterboxes, so there is an added explicit clear screen command for `totalRedraw()`.

The changes are only applied to Android builds in order not to affect PC builds - but some changes, especially clearing the screen could be easily added to the PC builds as well
2020-01-06 18:46:56 +00:00
2019-07-02 21:01:01 +02:00
2016-11-01 22:12:57 +03:00
2018-10-29 16:30:50 +01:00
2019-07-30 11:00:44 +02:00
2016-11-01 21:26:09 +03:00
2018-05-26 16:19:23 +03:00
2019-01-17 10:50:56 +03:00
2019-01-17 10:50:56 +03:00
2019-03-28 16:56:51 +03:00
2019-05-26 17:55:22 +02:00
2009-01-09 18:38:08 +00:00
2020-01-01 12:54:23 +01:00
2018-10-29 16:30:50 +01:00

Travis Build Status AppVeyor Build status Coverity Scan Build Status

VCMI Project

VCMI is work-in-progress attempt to recreate engine for Heroes III, giving it new and extended possibilities.

Installation guides

To use VCMI you need to own original data files.

Building from source

Platform support is constantly tested by continuous integration and CMake configuration adjusted to generate nice looking projects for all major IDE. Following guides will help you to setup build environment with no effort:

VCMI Project source code is licensed under GPL version 2 or later. VCMI Project assets are licensed under CC-BY-SA 4.0. Assets sources and information about contributors are available under following link: [https://github.com/vcmi/vcmi-assets]

Copyright (C) 2007-2020 VCMI Team (check AUTHORS file for the contributors list)

Description
Open-source engine for Heroes of Might and Magic III
Readme 142 MiB
Languages
C++ 67.1%
JSON-with-Comments 24.5%
Inno Setup 3.4%
Java 1.5%
CMake 1.4%
Other 1.8%