Commit Graph
4011 Commits
Author SHA1 Message Date
Le Philousophe 7794de5e5e GRAPHICS: OPENGL: Allow sscanf_s for GLAD
It is properly guarded so it won't bring any portability problem and the
file is autogenerated so this avoids to patch the file.
2024-06-01 13:42:01 +02:00
Le Philousophe a31ea07f82 Revert "GRAPHICS: OPENGL: Disable usage of sscanf_s"
This reverts commit 5040e1129d.
Instead of modifying an autogenerated file, patch around it.
2024-06-01 13:42:01 +02:00
Eugene Sandulenko 5040e1129d GRAPHICS: OPENGL: Disable usage of sscanf_s
This follows the earlier commit that added this symbol to forbidden.h
The code in glad.h is not using any features of sscanf_s, e.g.
sizes for the provided strings for safety, so it is not clear
why are they using it. Perhaps because it is declared "safer"
2024-05-30 09:24:59 +02:00
Hubert Maier 39ad7cc41e JANITORIAL: Fix referece typo in zblit_public.h 2024-05-18 13:52:31 +02:00
Hubert Maier 9139412157 JANITORIAL: Fix refering typo in mactext.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier a545fa7539 JANITORIAL: Fix extention typos in mactext-canvas.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier 395739c0f8 JANITORIAL: Fix adress typo in blit-atari.cpp 2024-05-18 13:52:31 +02:00
Eugene Sandulenko 5bd7b57282 GRAPHICS: MACGUI: Switch TTFMap to saner data structure not requiring global constructor 2024-05-12 15:23:30 +02:00
Cameron Cawley 248ab4ca15 GRAPHICS: MACGUI: Improve image quality in markdown documents 2024-05-09 15:19:17 +02:00
InariInDream cea8312c35 GUI: load ttf from archive in Unicode branch 2024-05-04 00:14:31 +02:00
InariInDream bd867b109a GUI: Switch HelpDialog to TTF fonts 2024-05-04 00:14:31 +02:00
InariInDream e70ea93149 GRAPHICS: MACGUI: Add support for TTF font maps 2024-05-04 00:14:31 +02:00
Eugene Sandulenko ff24083fd4 GRAPHICS: Make convertTo() work with incomplete palettes
We we always assuming that the provided palette is 256 bytes long,
up to the point that we hardcoded this value and skipped this parameter
almost everywhere.

This changes the default parameter to 256 and allows the lesser values
be passed.
2024-05-01 22:42:03 +02:00
Paul Gilbert dafc55d8b9 GRAPHICS: Add copy operator to Palette 2024-04-29 22:13:00 -07:00
Cameron Cawley 25db76b2b2 GRAPHICS: Reuse YUV lookup tables for identical RGB component sizes 2024-04-25 00:44:31 +02:00
Cameron Cawley eb4359c4a4 GRAPHICS: Further reduce the size of the YUV to RGB tables 2024-04-25 00:44:31 +02:00
Cameron Cawley c18bc24e79 GRAPHICS: Reduce the size of the YUV to RGB tables 2024-04-25 00:44:31 +02:00
polyesterswing deff7ab160 GRAPHICS: NINEPATCH: Change the way remaining_stretch is distributed
Remaining stretch is given to the last stretchable mark. This commit
changes things so that the first stretchable mark is given it.
2024-04-25 00:37:48 +02:00
polyesterswing 37f8f829ff Revert "GRAPHICS: Round border length to nearest interger"
This reverts commit 920a925265.
2024-04-25 00:37:48 +02:00
Eugene Sandulenko 2c33cfb478 GRAPHICS: MACGUI: Hid too noisy warning 2024-04-21 22:33:40 +02:00
hecmar007 558167eaa2 MACGUI WAGE: Handle \n in end of string case
Add logic to correctly add new line when a \n is present at the end of a string.
2024-04-01 18:21:24 +02:00
Matthew Jimenez 83aa8dc291 GRAPHICS: Remove palette start from surface convertToInPlace.
The palette start value was always zero, and was not properly multiplied by three when used in the function
2024-03-31 23:16:59 +03:00
Matthew Jimenez ee5ebec7ca IMAGE: Remove palette start from image decoder.
The palette start value was always zero, adding complexity without benefit.
2024-03-31 23:16:59 +03:00
elasota 26c054e0c5 IMAGE: Add support for loading CUR and ANI files 2024-03-31 14:39:28 -04:00
D G Turner 3dcd3e6fa6 GRAPHICS: MACGUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warnings 2024-03-30 16:40:22 +00:00
Krish 34ecd753ad GRAPHICS: MACGUI: Implement submenu scrolling 2024-03-27 15:34:34 +01:00
s-m33r b2851f8128 GRAPHICS: MACGUI: add _draggable property to BaseMacWindow 2024-03-25 21:22:56 +01:00
D G Turner 0d68f7d39a GRAPHICS: Fix Signed vs. Unsigned Comparison GCC Warnings 2024-03-20 22:16:45 +00:00
Matthew Jimenez 771dc751db GRAPHICS: Switch ManagedSurface to use Palette class 2024-03-18 21:06:04 +02:00
Le Philousophe 635cb6b998 GRAPHICS: OPENGL: Upgrade glad headers
This allows to remove a workaround in context creation
2024-03-17 15:39:32 +01:00
Hubert Maier 794f292b5d AMIGAOS: Use compiler defines 2024-03-16 01:59:27 +02:00
Eugene Sandulenko 8af225e5f2 GRAPHICS: Improved debug output on incorrect formats in Surface 2024-03-16 00:35:07 +01:00
Nabeel Khan 5b10353a68 GUI: Implement Window border draggability 2024-03-14 18:59:16 +01:00
hecmar007 c6c80b9313 GRAPHICS: MACGUI: Process extra long words (#5703)
GRAPHICS:  MACGUI: Process extra long words

Added functionality to rewrap words that split into different lines.
2024-03-13 17:39:21 +01:00
Matthew Jimenez 5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Matthew Jimenez 8af5e55712 GRAPHICS: Define Palette class and use in PaletteLookup 2024-03-11 01:02:15 +01:00
Torbjörn Andersson 1bf0dbad75 GRAPHICS: MACGUI: Eliminate timer use
As part of fixing a graphical glitch in Mac Indiana Jones and the Last
Crusade, eliminate the menu timer from the Mac window manager. It's just
too unpredictable and error prone for my taste.
2024-03-10 23:12:25 +01:00
scemino 0cba66b204 TWP: Move ImGui to backends 2024-03-07 20:08:26 +01:00
scemino b840146b6c TWP: Move imgui into graphics/ 2024-03-07 20:08:26 +01:00
polyesterswing 9626012752 MACGUI: Fill in the upper-left and upper-right corners with black 2024-03-04 19:16:22 +01:00
polyesterswing a6b0d088c2 Revert "GRAPHICS: MACGUI: Fix green borders in upper right and upper left corners of Mac menu bar"
This reverts commit 49ae002d6b.

The changes in this commit prevents windows in macventure from
displaying
2024-03-04 19:16:22 +01:00
Torbjörn Andersson 5117adc24c GRAPHICS: MACGUI: Give loaded fonts their correct ID
When loading other fonts than the system ones, they would get ID -1, not
the one from their resource ID. Even if you later registered the font
name, the old font entries would still be wrong. Another possibility
would be to update _fontRegistry when registering fonts, but sev was ok
with this way so let's go with it for now.

It does not consider the possibility of ID collisions the way
registerFontName() does, but apparently there shouldn't be much risk of
that.
2024-03-03 19:49:00 +01:00
Christian Kündig 7aa72a1633 EMSCRIPTEN: OPENGL: Disable GLAD 2024-02-27 17:07:13 +01:00
Christian Kündig 65bdafa0a0 EMSCRIPTEN: OPENGL: Disable OPENGL_DEBUG on Emscripten
863988f was causing a 10x increase in frame times regressing GRIM from 55fps to 3-5 fps.
2024-02-27 17:07:13 +01:00
Miro Kropacek f41a678ba1 GRAPHICS: ATARI: Utilize dlmalloc
- every malloc is now aligned on 16 bytes

- no need for the hidden pointers

- ct60_vmalloc() is called only once, the rest is handled
  by dlmalloc (SV XBIOS' vmalloc is pretty fragile)
2024-02-24 03:54:54 +01:00
Torbjörn Andersson a1c8db3201 JANITORIAL: Clean up some whitespace and double semicolons 2024-01-29 19:32:00 +01:00
Kaloyan Chehlarski be67cf827b GRAPHICS: Prevent segfault in ManagedSurface
The create() overload of ManagedSurface that creates a
new, owned surface, previously assumed that the
_innerSurface was owned before the call was made. Thus,
when switching between sub-surface and owning surface
modes, a segfault would occur when attempting to free
the pixel data of the inner surface, which is not actually
owned by the ManagedSurface. This commit makes sure
that when free() is called, the inner surface no longer
has an active pointer to its old pixel data.
2024-01-28 02:06:05 +01:00
Le Philousophe 42fa87acea GRAPHICS: OPENGL: Don't try to use GLAD aliasing for shaders
Aliasing doesn't cover all the functions we use.
In addition, old GLSL 1.00 doesn't support the #version stance.
2024-01-27 09:44:39 +01:00
Scott Percival 0562ff567c GRAPHICS: MACGUI: Move paragraph end marker when merging rows
Fixes issue where removing an empty line with backspace would remove the
previous empty line also.
2024-01-20 23:14:52 +01:00
Scott Percival 95b47042f0 GRAPHICS: MACGUI: Stop MacTextCanvas::chopChunk from removing last chunk
There needs to be at least one chunk per line of text, or else many
basic text operations will cause a crash.
2024-01-20 23:14:52 +01:00