libretroadmin
0e85113eb3
(libretro-common) Style nits/cleanups
2022-07-10 18:13:49 +02:00
libretroadmin
285d89b7d9
(win32_common.c) Optimize win32_save_positions - is always called whenever the window moves around (WM_MOVE) so is worth optimizing
...
- Get rid of memset, set the member variables to 0 manually instead. Note - rcDevice is behind a _MAC ifdef in the headers (some hypothetical Mac port
of Windows which never happened and therefore the ifdef is useless), so rcDevice is not set and will just be unused anyway
- Variable scoping, move variables to where they are needed
2022-07-09 16:16:23 +02:00
libretroadmin
c2f618d394
* (gfx_widgets) ptr_width >= ptr_height - equal would just mean setting ptr_width to
...
the same value, so turn it into 'greater than' instead
* Avoid some tertiary operators where we just set the variable back to its
own value
2022-07-09 13:00:50 +02:00
libretroadmin
81de36e1ff
(GL1/GL2 Raster fonts) remove dead code
2022-07-08 22:46:03 +02:00
libretroadmin
d95e426b4e
(Platform drivers) Cleanups - get rid of unnecessary logs
...
(VGA Font driver) Get rid of unused code by if 0ing it out
2022-07-08 22:10:53 +02:00
libretroadmin
e53a623f4a
(dispserv_win32.c) General cleanups
2022-07-08 21:45:04 +02:00
libretroadmin
71a3c24d52
(Vulkan) Solve some warnings - set VkResult variables to VK_SUCCESS
...
by default
2022-07-08 21:32:19 +02:00
libretroadmin
a6516512b6
(font_driver.c) Some cleanups - remove unnecessary log messages
...
that were dependent on a global variable - move a conditional outside
for get_text_replacement
2022-07-08 16:03:58 +02:00
libretroadmin
6fadb1bbf0
(PS2 Font driver) Buildfix
2022-07-07 21:35:45 +02:00
libretroadmin
3494c0de0a
(Caca/GDI/Sixel/VGA) Did not have proper implemented free functions
2022-07-07 21:29:14 +02:00
libretroadmin
c19e24a584
(font drivers) Simplify render_line functions
2022-07-07 19:51:36 +02:00
libretroadmin
b023001d29
(Win32/taskbar) Backport m4xw commit - Release ITaskbarList3 on failed HrInit
...
The pointer wasn't NULL'd, thus set_window_progress would cause weird behavior
2022-07-07 17:58:48 +02:00
libretroadmin
a547abbbaf
(gfx_animation.c) Cleanups - use float constant values -
...
and get rid of some tertiary operators where unnecessary
2022-07-07 16:56:54 +02:00
libretroadmin
cd28d5ec8a
(PSL1GHT/Switch) Fix warnings
2022-07-07 16:38:12 +02:00
libretroadmin
19b2ad56b0
(gfx_animation.c) Cleanups; prevent useless tertiary operators where
...
possible
2022-07-07 10:03:33 +02:00
libretroadmin
6df4ab4982
gfx_animation - use direct multiplication instead of pow when exponent
...
is an integer. Also try to use float values instead of implicit double
values
2022-07-07 09:15:35 +02:00
libretroadmin
92264826de
(gfx_display.c) Cleanups -
...
- get rid of unused gfx_display_driver_exists
- get rid of useless wrapper function gfx_display_font_init_first
- rewrite gfx_display_font_file somewhat
2022-07-06 20:05:43 +02:00
libretroadmin
aeb07432cc
gfx_display_draw_keyboard - we don't need mymat and/or
...
gfx_display_rotate_z here
2022-07-06 19:20:41 +02:00
libretroadmin
821bb86b37
Get rid of HAVE_THREADS macros
2022-07-06 15:01:53 +02:00
libretroadmin
b6c9740ba3
Get rid of gfx_timer_t typedef - replace with float
2022-07-06 14:41:15 +02:00
libretroadmin
3c20e709ea
Move gfx_display_reset_textures_list_buffer to gfx_display.c
2022-07-06 13:11:44 +02:00
libretroadmin
3aafa40c69
Bugfix for previous commit - cosine/sine were wrong
2022-07-06 12:09:08 +02:00
libretroadmin
bb6937949d
gfx_widget_draw_icon optimization - if radians is 0, we know cosine and
...
sine already. Avoid sinf/cosf computation when possible
2022-07-06 11:40:59 +02:00
libretroadmin
bf5409881c
gfx_display_rotate_z optimizations - if radians is 0, we know cosine
...
and sine already. Avoid the computation with sinf/cosf and pass it as value to the
function when possible
2022-07-06 11:03:15 +02:00
libretroadmin
6607ff3aaa
rotate_draw - get rid of scale_x/y/enable - scaling is only done now
...
in XMB at two spots - refactor gfx_display_rotate_z so that it only
manipulates the input matrix' Z axis
2022-07-05 20:50:01 +02:00
libretroadmin
2d33c49b26
(FPGA Gfx) get rid of unused viewport_info/read_viewport functions
2022-07-05 18:02:52 +02:00
libretroadmin
336ca1a68c
Don't call gfx_display_rotate_z unless the display driver implementation's
...
'handles_transform' is set to false
2022-07-05 17:20:01 +02:00
libretroadmin
1798651041
(gfx_widgets) scale_enable can b set to false for widgets, scale_factor was always 1.0f
...
(XMB) set scale_enable to false when scale_factor is 1.0f
2022-07-05 14:18:20 +02:00
libretroadmin
681e1dea94
gfx_display_rotate_z - if scale_x/y/z are all 1.0f, then set
...
scale_enable to false
2022-07-05 14:02:38 +02:00
sonninnos
494c93df3e
Thumbnail aspect ratio fix ( #14145 )
2022-07-05 12:01:21 +02:00
libretroadmin
9dd1fb895b
- Turn rotation arrows static where possible
...
- Don't call matrix_4x4_rotate_z - inline the code instead
2022-07-04 15:28:54 +02:00
libretroadmin
794e088ae1
(C89_BUILD) Buildfix
2022-07-03 18:18:52 +02:00
libretroadmin
50873f7c38
Simplify gfx_display_rotate_z
2022-07-03 17:38:09 +02:00
sonninnos
91c8541e20
(Ozone+XMB) Savestate thumbnail aspect ratio ( #14139 )
2022-07-03 16:14:51 +02:00
libretroadmin
b021f96522
(PSL1GHT) Silence some warnings
2022-07-03 14:20:10 +02:00
libretroadmin
f4803b1023
Silence warning - video_shader_is_shader_chain_config
2022-07-01 14:16:13 +02:00
Anders Storhaug
8addb08250
(Win32) Remove black margins with borderless non-fullscreen window ( #14098 )
2022-06-27 07:30:51 +02:00
libretroadmin
0172d57ada
(CTR) Simply font_render_driver_bottom
2022-06-27 02:46:13 +02:00
libretroadmin
ce1d1fd430
(font_driver.c) Simplify code - get rid of unneeded array loops
2022-06-27 01:04:14 +02:00
libretroadmin
128753c81d
(Freetype) Use FT_New_Memory_Face instead of FT_New_Face to load
...
font from memory - first read it from file to memory beforehand -
this solves an asset extraction issue when selecting 'Update Assets' -
apparently FT_New_Face keeps an open file handle to the font file which
prevents it from being overwritten/deleted while the program is still
running.
TODO/FIXME - move file loading code out of the font renderer init function
and move it higher level
2022-06-26 20:38:46 +02:00
libretroadmin
367dfd6e71
No longer include file_path_special.h in gfx_display.h
2022-06-26 18:35:07 +02:00
libretroadmin
4e13134c40
Remove unnecessary wrapper function gfx_display_font - just wrapped
...
around gfx_display_font_file
2022-06-26 18:19:43 +02:00
libretroadmin
cf12a5e7e7
(Font drivers) Uniformity in naming conventions
2022-06-26 18:01:43 +02:00
libretroadmin
aab64da1be
(Font driver/drivers display) All the font_init_first implementations
...
were exactly the same, cut down on code duplication
2022-06-26 17:27:59 +02:00
libretroadmin
41a073da73
(gfx_display_metal) Change ident name - should fix #14094
2022-06-23 18:39:24 +02:00
libretroadmin
bb15f009e4
Simplify gfx_display_check_compatibility
2022-06-21 19:45:27 +02:00
libretroadmin
fae8d7e38f
(Debug) Fix build failure
2022-06-21 03:33:36 +02:00
libretroadmin
61e08ee35b
Fix line breaks in gfx/video_driver.c
2022-06-20 20:26:02 +02:00
libretroadmin
0356c563b8
Simplify gfx_display_check_compatibility
2022-06-20 20:19:16 +02:00
sonninnos
a0bfdcce3b
(D3D11/12) Make waitable swapchains optional ( #14074 )
2022-06-19 21:25:37 +02:00