Commit graph

79 commits

Author SHA1 Message Date
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Henrik Rydgård
47a3bf1dd7 Step 2 of removing PanicAlert 2020-07-19 20:34:02 +02:00
Unknown W. Brackets
b181a93e5e MsgDialog: Add scrollbar when message is long.
Some games hard wrap their messages, and PSP firmware also showed a
scrollbar.  Let's do the same.

One intentional difference: trying to ensure we always show part of a
hidden line to make it clear to the user that there's more text.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
3586128d8d PPGe: Draw nicer drop shadows.
Only when we have a text drawer for text, because it really adds up.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
143ba22097 PPGe: Handle text shadows more consistently.
Don't really want them wrapping differently or etc.  Let's handle
centrally so we can make them consistent and better.
2020-07-13 18:20:57 -07:00
Henrik Rydgård
63ead85c7f Some paranoid checks in PPGeDraw. Might help the crash seen in #13047. 2020-06-28 21:35:19 +02:00
Henrik Rydgård
4bcd8df079 Logging improvements and warning fixes.
(Had a super odd crash that I can't repro anymore in PPGe init...)
2020-06-22 22:46:03 +02:00
Unknown W. Brackets
4f586f9567 PPGe: Left align messages in dialogs.
It was previously left aligned, but the TextDrawer was being told to
center.  These are meant to just center the enclosing box of text, not the
individual lines within.

Makes Final Fantasy 3 look a lot better.
2020-05-23 19:59:56 -07:00
Unknown W. Brackets
e4abfd5408 PPGe: Remove half-pixel offset.
This made the background misaligned, causing a black border on the right
and bottom edges.
2020-04-22 21:19:34 -07:00
Unknown W. Brackets
41dfe05de2 Headless: Fix compile on Android. 2020-04-05 15:23:13 -07:00
Henrik Rydgård
620aa50cf1 PPGe: Slightly reduce the font size, might help #12764 2020-03-28 14:37:35 +01:00
Unknown W. Brackets
dbc78b437e PPGe: Fix dialog button positioning.
The measure was previously the line height, but always ultimately used
as the full text height.  This just makes it always full height.
2020-03-23 18:23:35 -07:00
Unknown W. Brackets
d2d07e253b PPGe: Avoid crash with missing metadata. 2020-03-22 07:12:16 -07:00
Unknown W. Brackets
da9158b34b UI: Allow startup without UI assets.
On platforms where we render fonts, it is at least somewhat usable without
assets.  A much better experience than a segfault.

On other platforms, it'll probably be mostly unusable, but you can already
get that with an old/wrong assets file.
2020-03-21 21:35:43 -07:00
Unknown W. Brackets
de81b706c4 PPGe: Clear unused parts of text image buffers.
Prevents artifacts when the RAM previously had other data in it.
2020-03-11 06:48:11 -07:00
Unknown W. Brackets
5f65c075e2 PPGe: Correct double spacing in some save text. 2020-03-11 06:37:18 -07:00
Unknown W. Brackets
9c9ace6e1a Android: Delay TextDrawer init in PPGe.
We need it to init on the correct thread.
2020-03-10 21:40:47 -07:00
Unknown W. Brackets
08a6047768 PPGe: Show ellipsis for overly long lines.
To match PPGE_LINE_USE_ELLIPSIS when using TextDrawer.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets
6652fe261f PPGe: Use TextDrawer for save UI if available.
This should result in better spacing for non-Latin characters, and less
missing letters.  Basically the same benefits as for the UI.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets
f2c88d6626 PPGe: Make some of the API internal only.
We don't use these externally and probably won't.
2020-03-10 21:30:53 -07:00
Henrik Rydgård
4c392c6473 Fix bug in atlas gen.
(Due to the squash and some reordering, the previous commit already
includes fixed metadata)
2020-03-01 12:06:47 +01:00
Henrik Rydgård
45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Henrik Rydgård
bd71af24db Fix some minor things found looking at Valgrind output 2019-02-27 13:42:00 +01:00
Unknown W. Brackets
b1146d8d9d PPGe: Correct text wrap without height. 2019-02-20 17:04:30 -08:00
Unknown W. Brackets
9a5fbe5ea5 Savedata: Truncate detail if it's too long.
We could add scrolling later, but this makes it more usable without ugly
text overlap, at least.

Fixes #11711.
2019-02-16 14:52:01 -08:00
Henrik Rydgard
e611915a52 Rename some GPU classes and enums to fix some consistency issues between the backends. 2016-04-10 10:21:48 +02:00
Unknown W. Brackets
ea6afdff93 Avoid remaster vertex doubling in PPGe. 2015-12-28 14:13:07 -08:00
Unknown W. Brackets
2450724be2 Make Memory::Memcpy() execute memchecks directly.
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets
d497bc7c8c Ensure safe zim access regardless of file contents. 2015-01-17 18:43:00 -08:00
Unknown W. Brackets
b279b6d461 Typo. 2014-11-03 09:00:20 -08:00
Unknown W. Brackets
2d5733407b Small optimization to __PPGeInit().
Small factor in startup time.
2014-11-02 17:44:24 -08:00
Henrik Rydgård
87f203a5b8 More include untangling 2013-12-29 23:44:35 +01:00
Henrik Rydgård
79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets
497537a4c4 Fix another dumb typo.
Arg, need to stop rushing things.  May have caused #4869.
2013-12-17 23:36:51 -08:00
Unknown W. Brackets
b2795b31c0 Only draw visible savedata icons, fix leak.
Fixes #4870.
2013-12-17 08:07:30 -08:00
Unknown W. Brackets
f7bad51cc7 Clip in PPGe, fixing issues in softgpu.
We were just drawing wrong, so softgpu was correct.
2013-12-15 11:59:23 -08:00
Unknown W. Brackets
0636a65ad9 Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08:00
Unknown W. Brackets
2d3f0758c1 Dynamically manage PPGe images so 50+ are okay.
Otherwise, we try to allocate all at once and could run out of ram.

Should fix #2242.
2013-12-08 11:06:18 -08:00
Sacha
08803c101e Remove MathUtil.{cpp,h} 2013-11-13 11:26:12 +10:00
Unknown W. Brackets
a7f60afecb Use a saved ctx not break/continue in PPGe. 2013-09-20 21:15:36 -07:00
Unknown W. Brackets
0735a9a679 Just disable PPGe during tests, should be okay. 2013-09-17 23:13:13 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Ced2911
0bae3f8bf9 fix endian in image 2013-08-16 09:18:30 +02:00
Unknown W. Brackets
2f94977efe Don't include gfx/gl* outside the OpenGL GE. 2013-07-29 22:47:38 -07:00
Unknown W. Brackets
0a9ce9ae85 Specify memory layout in PPGe. 2013-07-27 15:38:38 -07:00
aquanull
fb651156d8 Implement text truncation with ellipses. 2013-06-15 21:20:17 +08:00
aquanull
336f388fa2 Allow CJK characters to be wrapped individually. 2013-06-15 21:20:17 +08:00
aquanull
77a01c1526 Fix missing punctuation marks when the text is wrapped around them.
Truncate trailing white spaces instead of putting them on the beginning of the next line.
2013-06-15 21:20:17 +08:00
Sacha
5aba914a42 Build fix for non-ffmpeg and non-gcc non-++11. 2013-06-12 10:51:30 +10:00