Rachael Alexanderson
d3bdeacd09
- fixed: use 'setsizeneeded' more often in the scaling code. recalculating screen geometry for 2D elements when it changes never really hurts.
2018-10-15 11:32:34 +02:00
Rachael Alexanderson
24d42b74a7
- fixed: use templates.h
function for minimal value check
...
# Conflicts:
# src/r_videoscale.cpp
2018-10-15 11:32:06 +02:00
Rachael Alexanderson
c42c4afeeb
- enforce 160x100 minimum in actual scaling code
...
# Conflicts:
# src/r_videoscale.cpp
2018-10-15 11:28:08 +02:00
drfrag666
03dbd1b4a7
- Made 160x100 the minimum scaling, UI looks too big tough.
2018-07-23 00:58:00 +02:00
Rachael Alexanderson
75a8c4da3e
- the error checking on the previous commit should've been done slightly differently
2018-07-22 12:46:57 +02:00
Rachael Alexanderson
9b26fba11b
- implement a new vid_scalemode: 5 - this allows the usage of custom absolute scaling modes
...
- new ccmd: vid_setscale <x> <y> [linear] [fake-mcga-4:3] - sets vid_scalemode to 5 with the absolute scaling parameters. example: vid_scalemode 800 600 allows you to see the screen (stretched) as if it were 800x600. Linear specifies whether to force the scaling to be linear in this mode, and "fake-mcga-4:3" is meant for 320x200-like modes that mimic mode13h scaling.
2018-07-22 12:46:57 +02:00
Rachael Alexanderson
98dc10c127
- also remove unused forward declarations
...
(cherry picked from commit bcadd2bf04
)
2018-05-17 13:06:44 +02:00
Rachael Alexanderson
25b281659c
- cleaned up vid_scaleto____ code a bit, also set a sane lower limit for vid_scalefactor, removed some code redundancy
...
(cherry picked from commit 0f36b9d63f
)
2018-05-17 13:06:44 +02:00
Rachael Alexanderson
126dcb5a70
- added vid_scaletowidth and vid_scaletoheight to calculate vid_scalefactor to reach a certain value on screen dynamics
...
(cherry picked from commit 0fae13bab4
)
2018-05-17 13:06:43 +02:00
Rachael Alexanderson
7d67d5e998
- fixed possible erroneous comparison, also fixed a couple compiler warnings in the process
2017-10-10 07:23:05 -04:00
Rachael Alexanderson
69abf095c9
- added vid_cropaspect. This cvar turns vid_aspect into a letterboxing function that will crop the unused sides of the screen away, instead of stretching it. Requires one of the non-legacy OpenGL framebuffers to work.
2017-10-07 20:18:37 -04:00
Rachael Alexanderson
ffa11dec54
- added bounds checker for all calls to vid_scalemode code - apparently it was possible to start gzdoom with vid_scalemode==8 from previous valid values and cause it to crash.
2017-09-13 02:45:37 -04:00
Rachael Alexanderson
4b82bb50df
- removed scale resolutions and added vid_scalefactor to replace them.
2017-09-10 12:29:07 -04:00
Rachael Alexanderson
432afd9edf
- privatized the namespace in r_videoscale.cpp completely
2017-09-10 09:50:49 -04:00
Rachael Alexanderson
86a66cd554
- refactored r_videoscale.cpp to use a table.
...
- reordered vid_scalemode modes to be a little neater, having static modes and scalar modes separate, with a buffer in between so new modes can be added in the future without disrupting the current order.
2017-09-10 09:41:03 -04:00
Rachael Alexanderson
3540440bf6
- add 1280x800 scale mode
2017-07-27 12:19:41 -04:00
raa-eruanna
5795e0fd3e
- included another header in order to fix an error reported by travis ci
2017-07-27 03:37:01 -04:00
Rachael Alexanderson
30087f7cd7
- cleaned up the video scale mode code a bit, in order to increase future flexibility.
2017-07-27 03:05:01 -04:00