Merge branch 'Reonu:master' into colored-text

This commit is contained in:
Gregory Heskett authored and GitHub committed 2021-07-26 04:30:17 -05:00
commit 7aa6713645
9 files changed
+620 -222

No files matched your search

+4 -4
View File
@@ -1498,6 +1498,10 @@ void render_widescreen_setting(void) {
print_generic_string(10, 200, textWideInfo2);
}
gSPDisplayList(gDisplayListHead++, dl_ia_text_end);
if (gPlayer1Controller->buttonPressed & L_TRIG){
gWidescreen ^= 1;
save_file_set_widescreen_mode(gWidescreen);
}
}
#endif
@@ -1854,10 +1858,6 @@ s16 render_pause_courses_and_castle(void) {
}
#ifdef WIDE
render_widescreen_setting();
if (gPlayer1Controller->buttonPressed & L_TRIG){
gWidescreen ^= 1;
save_file_set_widescreen_mode(gWidescreen);
}
#endif
if (gDialogTextAlpha < 250) {
gDialogTextAlpha += 25;
+4 -12
View File
@@ -15,8 +15,6 @@
#include "config.h"
#define WIDESCREEN
/**
* This file contains the code that processes the scene graph for rendering.
* The scene graph is responsible for drawing everything except the HUD / text boxes.
@@ -297,14 +295,9 @@ static void geo_process_perspective(struct GraphNodePerspective *node) {
u16 perspNorm;
Mtx *mtx = alloc_display_list(sizeof(*mtx));
#ifdef WIDE
if (gWidescreen){
if (gCurrLevelNum == 0x01) {
aspect = 1.33333f;
} else {
aspect = 1.775f;
}
}
else{
if (gWidescreen && (gCurrLevelNum != 0x01)){
aspect = 1.775f;
} else {
aspect = 1.33333f;
}
#else
@@ -836,11 +829,10 @@ static s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) {
// the amount of units between the center of the screen and the horizontal edge
// given the distance from the object to the camera.
#ifdef WIDESCREEN
// This multiplication should really be performed on 4:3 as well,
// but the issue will be more apparent on widescreen.
// HackerSM64: This multiplication is done regardless of aspect ratio to fix object pop-in on the edges of the screen (which happens at 4:3 too)
hScreenEdge *= GFX_DIMENSIONS_ASPECT_RATIO;
#endif
if (geo != NULL && geo->type == GRAPH_NODE_TYPE_CULLING_RADIUS) {
cullingRadius =
+1 -1
View File
@@ -64,7 +64,7 @@ struct MainMenuSaveData
#endif
#ifdef VERSION_EU
u16 language;
u8 language: 2;
#define SUBTRAHEND 8
#else
#define SUBTRAHEND 6
+4 -7
View File
@@ -53,8 +53,7 @@ static s8 sSelectableStarIndex = 0;
// Act Selector menu timer that keeps counting until you choose an act.
static s32 sActSelectorMenuTimer = 0;
#ifdef WIDE
#endif
/**
* Act Selector Star Type Loop Action
* Defines a select type for a star in the act selector.
@@ -95,11 +94,10 @@ void render_100_coin_star(u8 stars) {
if (stars & (1 << 6)) {
// If the 100 coin star has been collected, create a new star selector next to the coin score.
#ifdef WIDE
if (gWidescreen){
if (gWidescreen) {
sStarSelectorModels[6] = spawn_object_abs_with_rot(gCurrentObject, 0, MODEL_STAR,
bhvActSelectorStarType, ((370*4.0f)/3), 24, -300, 0, 0, 0);
}
else{
} else {
sStarSelectorModels[6] = spawn_object_abs_with_rot(gCurrentObject, 0, MODEL_STAR,
bhvActSelectorStarType, 370, 24, -300, 0, 0, 0);
}
@@ -169,8 +167,7 @@ void bhv_act_selector_init(void) {
(((75 + sVisibleStars * -75 + i * 152)*4.0f)/3), 248, -300, 0, 0, 0);
sStarSelectorModels[i]->oStarSelectorSize = 1.0f;
}
}
else {
} else {
for (i = 0; i < sVisibleStars; i++) {
sStarSelectorModels[i] =
spawn_object_abs_with_rot(gCurrentObject, 0, selectorModelIDs[i], bhvActSelectorStarType,