-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New DebugScreeen implementation (was: "Missing psvDebugScreenClear() function") #50
Comments
That's not the only issue with that sample in particular. It refers to an old vitasdk version. The sample itself should be updated. |
@Rinnegatamante Thanks for the insight. I investigated further and recognized that Additionally I wonder why the debug screen code is inside a header file and has several static definitions. Currently adapting the old |
Adapted All For other projects all Next will be to adopt the font scaler to it. Like |
The See: https://github.com/vitasdk/samples/blob/master/debug_print/src/main.c @Rinnegatamante Yeah I was probably waiting for some feedback and eventually lost track of time and simply moved to another project. @windsurfer1122 So you want to switch to a bigger/smaller font ? there's a sample for that. |
@yne Thanks for the explanation. Never had to deal with CSI sequences back in my C days. Will re-adapt. |
UPDATE: 2019-07-25. Own bug fixed and added much more for getting closer to the ANSI CSI implementation and for having functionality in own project. I enhanced and fixed some bugs in the current debugScreen implementation. File: Update in post #50 (comment) debugScreen
Samples in C
Samples in C++
Sample camera
Sample microphone
Sample net_http_bsd
Sample power
0J bug with old implementationNew debugscreen sample |
Nice job, it's always nice to see some unification.
|
My private project will have 2 or 3 different source files (*.c) and all of them will create some debugScreen output. If the old "debugScreen.h" is included in all 3 files, I will have duplicate code in my .o files and/or linker issues. Side note:
So I'm currently fixing these, also implementing CSI 7m for "invert"/"reverse video" and optimze code on the way (guideline: always code like there is no compiler optimization). [1] https://www.ecma-international.org/publications/standards/Ecma-048.htm |
Have you tried to change
Did you mean
?
Let's hope those features and hand-crafted optimization won't add more bugs and complexity than the features they add |
Don't want to outsmart or avoid the optimizer of the compiler (via pragmas, flags, etc.) as I never would assume that I'm smarter than those guys developing compilers. Always try to keep code maintainable/clean, sanitized, straight forward and re-usable. Just read all available docs for CSI sequences and hope to get it done the next days. |
Updated earlier comment/post #50 (comment) with updated implementation. Tested quite a lot and should be a solid implementation. Should be final. |
You shall at least check |
@yne |
@windsurfer1122 nice :) |
Hiding internal functions via The only reason I found for including the code as it was before, was for C++, and that could be handled with a simple #define. The changes to the CPP source with |
Nah I'm fine, I was just curious if the |
Compromise:
File: sdk-common-debugscreen-fixes-enhancements_20190726_1459.zip And thanks for your reviews and discussion. |
My first pull request. Hope this is done correctly. |
Updated pull request. Corrected header file for C++, so even less changes are needed in the C++ samples to the source code. |
Added via ded5780 |
The sample "prx_loader" uses the function
psvDebugScreenClear()
which is not defined in any header file or library.Did this function get lost somewhen? Or can it be added to the Vita SDK for general usage?
On the net I found the following code in different projects (mostly in a file called graphics.c):
[1] https://github.com/dots-tb/rePatch-reDux0/blob/master/rePatchAIDs/graphics.c
The text was updated successfully, but these errors were encountered: