1
0
Fork 0
Commit graph

4154 commits

Author SHA1 Message Date
David Reid
871556d57f
Sync dr_flac with upsteam (v0.12.11) 2020-04-18 21:57:10 -07:00
David Reid
03d5163153
Sync dr_mp3 with upsteam (v0.6.4) 2020-04-18 21:57:09 -07:00
David Reid
4ef2d5ddc4
Sync dr_wav with upsteam (v0.12.1) 2020-04-18 21:57:08 -07:00
Patryk Obara
9924913e4a Move implementation to GetConfigName static function
Old interface Cross::GetPlatformConfigName is retained for backwards
compatibility for now.
2020-04-18 22:09:04 +02:00
Patryk Obara
c144552641 Avoid spaces in config file name on macOS
There's no reason to having a different name for .conf file on every
platform, it only makes things more difficult from user and developer
perspective.
2020-04-18 22:09:04 +02:00
Patryk Obara
2203c5e726 Adjust first comment in .conf file 2020-04-18 22:09:04 +02:00
Patryk Obara
64772850b5 Respect XDG spec for dosbox main .conf file
Windows and macOS config files are left as they were, this change
affects mostly Linux users.

Users are not forced to migrate, but visible warning is being issued if
they aren't. Majority of users probably won't notice it, as the stable
release should generate newly named .conf file.
2020-04-18 22:09:04 +02:00
Patryk Obara
a51f9b5600 Remove punctuation from some logs 2020-04-18 22:09:04 +02:00
Patryk Obara
a6da84d23e Add Linux desktop icons according to XDG spec
Change X11 Window WM_CLASS to 'dosbox-staging' to avoid conflicts with
upstream DOSBox, which might be provided by package manager.

Update .desktop file to specify WMClass to be correlated with
dosbox-staging process (even if executable file conflicts with dosbox
upstream).

Update contrib/icons/Makefile to generate 'hicolor' directory structure.
2020-04-15 23:55:48 +02:00
Patryk Obara
e5486f67cc Use half-pause character as title separator
It seems like most applications on Windows and Linux use half-pause for
this purpose (same character as minus sign).
2020-04-15 19:25:02 +02:00
Patryk Obara
b3a3c5dfe5 Use new icon in Windows builds 2020-04-15 19:25:02 +02:00
Patryk Obara
5008477fd2 Set new 128px icon 2020-04-15 19:25:02 +02:00
Patryk Obara
02838b4937 Create new icon data
This is dosbox-staging icon (see contrib/icons/), rendered to size
128x128 with rsvg-convert (128x128 is recommended for various Linux DEs,
as this icon will mostly see usage on Linux - macOS and Windows have
icons in their native formats).  Data dump created with GIMP with
following settings:

- Use 1 byte Run-Length-Encoding
- Save alpha channel
2020-04-15 19:25:02 +02:00
Patryk Obara
c040efed53 Add static_casts for few VGA modeinfo fields
In all cases values are stored in Bitu, but the allowed range fits
into a single byte.
2020-04-15 14:26:29 +02:00
krcroft
1789912212 Cleanup switch/case formatting 2020-04-15 14:26:29 +02:00
krcroft
54d805bd5c Simplify assignments with type-sized host reads 2020-04-15 14:26:29 +02:00
krcroft
7375db2a83 Use type-specific host conversion funcs 2020-04-15 14:26:29 +02:00
krcroft
297229700c Make use of indexed reads and writes 2020-04-15 14:26:29 +02:00
krcroft
e402ad9f56 Remove unecessary dereferences and casts 2020-04-15 14:26:29 +02:00
krcroft
e0afec7743 Fix alignment when populating the VESA mode block 2020-04-15 14:26:29 +02:00
krcroft
1ea78a87fa Fix alignment when writing the jump value to memory 2020-04-15 14:26:29 +02:00
krcroft
31b27e6409 Fix alignment when adding a jump value to the cache 2020-04-15 14:26:29 +02:00
krcroft
f9a1935c8e Fix alignment when saving the branch value 2020-04-15 14:26:28 +02:00
krcroft
aadf4edbed Fix alignment when assigning a cache diff value 2020-04-15 14:26:28 +02:00
krcroft
34d46ecd7f Fix alignment when incrementing values in the cache 2020-04-15 14:26:28 +02:00
krcroft
86249ec821 Fix alignment when fetching values in the decoder 2020-04-15 14:26:28 +02:00
krcroft
94c404577d Fix alignment when incrementing the invalidation map
We also eliminate the endian-branch because endian differences are
already taken care of in the host_add* functions.
2020-04-15 14:26:28 +02:00
krcroft
0d004f4c60 Fix alignment when writing to the cache 2020-04-15 14:26:28 +02:00
krcroft
32692cc50e Fix alignment when reading values from the write-map 2020-04-15 14:26:28 +02:00
Patryk Obara
c05bbafb5d Create byteorder header for host_to_le functions 2020-04-15 00:01:25 +02:00
Patryk Obara
52fd4ed2d0 Hide remaining OpenGL parts behind C_OPENGL ifdef 2020-04-15 00:01:02 +02:00
Patryk Obara
851b65c5f9 Inform user about allowed windowresolution bounds 2020-04-14 06:28:08 +02:00
Patryk Obara
4a2369d4a6 Create aliases for boolean SetWindowMode parameters
This way it's more obvious to the reader, what given parameter does
(instead of non-descriptive 'false/true'.

Create alias 'FIXED_SIZE' for 'false' meaning "non-resizable" window. It's a
constexpr bool global variable, so compiler will remind us when it'll
be time to remove it.
2020-04-14 06:28:08 +02:00
Patryk Obara
6ee68c5182 Rework interface of GetAvailableArea function
New interface allows for shorter function and clearly states what
happens when sdl.draw.pixel_aspect == 1.0.
2020-04-14 06:28:08 +02:00
Patryk Obara
3680049510 Replace Bitu with size_t when drawing surface 2020-04-14 06:28:08 +02:00
Patryk Obara
7198ea306c Add SPDX identifier in sdlmain.cpp
At this point, this file was heavily modified compared to upstream
version, so include our own copyright line in here.
2020-04-14 06:28:08 +02:00
Patryk Obara
c24816a586 Check if window exists before making it resizable 2020-04-14 06:28:08 +02:00
Patryk Obara
65b4e7c5d7 Remove HandleVideoResize call from SetWindowMode
This call was useful during development and testing with
output=opengl, but now it's no longer necessary.  This call causes
output=texture to go into initialization loop, which falls back to
surface, which we definitely do not want.
2020-04-14 06:28:08 +02:00
Patryk Obara
75e0a1af86 Add windowresolution options: 'resizable' and 'default'
'resizable' option turns on resizable window if all the prerequisites
are met (OpenGL and compatible shader). Right now only shader 'sharp' was
tested as compatible, but other built-in shaders might be whitelisted in
the future as well (e.g. 'advmame*' shaders seem like good candidates).

Using incompatible shader does not cause any particular problems for the
users, but it looks really ugly - shader implementations clearly were
implemented only for a fixed window size.

'default' option acts as 'resizable' on Linux and 'original' everywhere
else. It also gives as an option to tweak available windowresolution
settings without causing too much disruption to end users.
2020-04-14 06:28:08 +02:00
Patryk Obara
2ab250d1a1 Update minimum window size
It's necessary for usecase when game changes resolution while in game.
We don't want to resize the window in such case, just change minimum
size (SDL might decide to update the window size in the result, if new
resolution is higher than current window size).
2020-04-14 06:28:08 +02:00
Patryk Obara
7a98ff787f Update clip when window is being resized
This works very well when user is resizing the window and going
in/leaving fullscreen.  It does not affect usecase where window size is
being updated by the emulator (e.g. game changing resolution).
2020-04-14 06:28:08 +02:00
Patryk Obara
a5e8118afd Cleanup and initialize all fields in sdl.draw 2020-04-14 06:28:08 +02:00
Patryk Obara
5ee474fdb8 Restore redraw instead of reset during expose
This prevents perceived lag window is being dragged (at least on Linux).
2020-04-14 06:28:08 +02:00
Patryk Obara
edf8e7e850 Make window resizable with a minimum size 2020-04-14 06:28:08 +02:00
Patryk Obara
860003a89f Calculate clip stretching inside the window 2020-04-14 06:28:08 +02:00
Patryk Obara
5b5cbd7f4b Watch window resize events 2020-04-14 06:28:08 +02:00
Patryk Obara
fff4dcf8b3 Add want_resizable_window flag 2020-04-14 06:28:08 +02:00
Patryk Obara
ffb9fe14bb Add 'resizable' parameter to SetWindowMode 2020-04-14 06:28:08 +02:00
Patryk Obara
1503fb4ebc Merge branch 'svn/trunk' r4336 2020-04-13 15:40:54 +02:00
ripsaw8080
d09f74cae8 Correct an oversight of r4186 when floppy disks are mounted.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4336
2020-04-12 20:21:12 +00:00