1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

53 Commits

Author SHA1 Message Date
Mathieu Schroeter
bc0a7cbc76 Do not prepend SDL headers by SDL2/
It's not always the case.
2018-07-17 18:13:08 +02:00
Mathieu Schroeter
190147015d Get size only when necessary 2018-06-27 18:19:38 +02:00
Mathieu Schroeter
e03a539744 Cosmetic: remove dead code 2018-06-27 18:17:44 +02:00
Mathieu Schroeter
94996ef4d7 Cosmetic: fix format 2018-06-27 17:32:41 +02:00
Mathieu Schroeter
988962d74a Retrieve the right ratio accordingly to the current display
It's no longer forced to 16:9.
2018-06-27 17:31:59 +02:00
Mathieu Schroeter
93f5389132 Cosmetics 2018-06-26 19:14:55 +02:00
Mathieu Schroeter
bf31378ffc Cosmetics 2018-06-26 19:11:49 +02:00
Mathieu Schroeter
375388b22f Fix mouse position when changing zoom and fullscreen 2018-06-25 22:17:39 +02:00
Mathieu Schroeter
3834861c1e Fix mouse wrap in fullscreen (desktop) 2018-06-25 17:58:24 +02:00
Mathieu Schroeter
c2b4bee30f Ensure to destroy the main texture on reload 2018-06-14 23:51:58 +02:00
Mathieu Schroeter
17e9f1e3e4 Fix use of mainTexture with landscape fullscreen 2018-06-14 23:51:05 +02:00
Mathieu Schroeter
c79961e803 Merge branch 'wip/fullscreen' into wip/landscape 2018-06-13 23:42:55 +02:00
Mathieu Schroeter
b3c6b53693 WIP: add impl. of fullscreen desktop
It's possible to switch between both mode (fullscreen 640x480 and
fullscreen desktop). The zoom option is used for this switch in
fullscreen. The textes must be adapted in this case.
2018-06-13 23:16:59 +02:00
Mathieu Schroeter
0289b0224b WIP: add handling support for desktop fullscreen mode 2018-06-13 23:15:23 +02:00
Mathieu Schroeter
daf70260de Pass the event manager to pixmap 2018-06-13 23:10:24 +02:00
Mathieu Schroeter
84a671a763 Merge branch 'master' into wip/landscape 2018-06-11 23:22:37 +02:00
Mathieu Schroeter
34869f1736 Fix black backgrounds with opengles2 2018-06-11 18:18:07 +02:00
Mathieu Schroeter
e88e58863b Merge branch 'master' into wip/landscape 2018-02-19 18:13:21 +01:00
Mathieu Schroeter
0bc1d00074 Cosmetic 2018-02-13 23:44:08 +01:00
Mathieu Schroeter
8bfafd3e4e Fix first texture loading on OSX where it was possible to have garbage
The cache ensures that the texture is cleared after the rendering.
2018-02-05 18:14:21 +01:00
Mathieu Schroeter
579a74000c Fix blupi channel memleak 2017-11-26 21:57:20 +01:00
Mathieu Schroeter
bf7857d61a Use the widescreen background only with widescreens 2017-10-21 15:59:18 +02:00
Mathieu Schroeter
108c577b85 Use the back-build image as stretched background for wide screen
Concerns only screens provided with the map builder.
2017-10-21 15:31:38 +02:00
Mathieu Schroeter
dfe3647a74 Add a BltFast function with src and dst rect 2017-10-21 15:30:37 +02:00
Mathieu Schroeter
56af742d0a Merge branch 'master' into wip/landscape 2017-10-21 10:52:54 +02:00
Mathieu Schroeter
a64b03c1da Remove obsolete mask argument of many draw functions 2017-10-18 07:04:35 +02:00
Mathieu Schroeter
62717b4e1a Finish expand mode for playing backgrounds 2017-10-15 22:08:22 +02:00
Mathieu Schroeter
f65fb90fe5 Cosmetics 2017-10-15 11:23:38 +02:00
Mathieu Schroeter
f7640e92ce WIP: add an expanded mode for the backgrounds
It's just partially working.
2017-10-15 11:23:02 +02:00
Mathieu Schroeter
e56b83e87c Merge branch 'master' into wip/landscape 2017-10-11 16:21:40 +02:00
Mathieu Schroeter
1b242ca3aa Adapt the mouse cursor size according to the zoom 2017-10-11 16:08:27 +02:00
Mathieu Schroeter
dcbfd5cc35 Add a method to create an empty texture 2017-10-10 18:28:09 +02:00
Mathieu Schroeter
fd43a6ef01 WIP: add landscape support 2017-10-06 18:23:07 +02:00
Mathieu Schroeter
bb1fe04257 Remove dead code 2017-08-26 23:07:26 +02:00
Mathieu Schroeter
8cd1cacb89 Rename windows types to something else 2017-08-21 22:08:25 +02:00
Mathieu Schroeter
2a1128ecef COsmetic: update clang-format definition 2017-08-14 22:10:26 +02:00
Mathieu Schroeter
7f3f7e4f37 Change some Sint32 to MouseSprites 2017-08-13 21:41:06 +02:00
Mathieu Schroeter
03e12faa48 Pass MouseSprites instead of int for some cases 2017-08-13 19:12:03 +02:00
Mathieu Schroeter
c9aea77afc Fix leak by freeing the cursor surface 2017-08-11 23:22:28 +02:00
Mathieu Schroeter
d983422866 Fix memleak with CHBLUPI channel 2017-08-11 23:14:48 +02:00
Mathieu Schroeter
4b2cf9417d Reformat with clang-format file 2017-08-04 00:21:47 +02:00
Mathieu Schroeter
57b6190a53 Add license header in all source files 2017-08-03 22:51:40 +02:00
Mathieu Schroeter
643f5eead2 Fix mask when building an object
It uses a white and black mask. See BuildIconMask for details.
2017-07-22 18:08:50 +02:00
Mathieu Schroeter
8de7181458 Remove useless mouse type code 2017-03-03 22:44:09 +01:00
Mathieu Schroeter
fc37ddd017 Reload the textures (target) when the window size changes 2017-03-03 17:43:01 +01:00
Mathieu Schroeter
56794b45dd Set explicitly to false 2017-03-03 07:35:40 +01:00
Mathieu Schroeter
ec06fcc410 Set the texture props each Cache calls 2017-03-03 07:34:58 +01:00
Mathieu Schroeter
c1875fd3ab Remove useless MAXIMAGE define 2017-03-03 07:05:18 +01:00
Mathieu Schroeter
d652db22e2 Use the TextureInfo struct for dimensions 2017-03-03 06:56:32 +01:00
Mathieu Schroeter
3b027424a1 Replace the static texture array by a map 2017-03-02 22:37:17 +01:00