Small Fix

This commit is contained in:
tobid7 2024-06-23 23:28:01 +02:00
parent f7e4d9848a
commit d9af637050
2 changed files with 3 additions and 3 deletions

View File

@ -838,9 +838,9 @@ bool BeginMenu(const std::string &title, R7Vec2 size, UI7MenuFlags flags) {
float cursor_mod = (ui7_ctx->cm->mdp.y - np.y); float cursor_mod = (ui7_ctx->cm->mdp.y - np.y);
if (ui7_ctx->cm->scrolling_mod <= 4.f && if (ui7_ctx->cm->scrolling_mod <= 4.f &&
ui7_ctx->cm->scrolling_mod >= -4 && cursor_mod != 0.0f) { ui7_ctx->cm->scrolling_mod >= -4 && cursor_mod != 0.0f) {
if (cursor_mod > 0) { if (cursor_mod > 2) {
ui7_ctx->cm->scrolling_mod = cursor_mod; ui7_ctx->cm->scrolling_mod = cursor_mod;
} else { } else if (cursor_mod < -2) {
ui7_ctx->cm->scrolling_mod = cursor_mod; ui7_ctx->cm->scrolling_mod = cursor_mod;
} }
} }

View File

@ -851,7 +851,7 @@ void RenderD7::RSettings::Logic() {
stateftold = rd7i_ftraced; stateftold = rd7i_ftraced;
if (m_state == RSETTINGS) { if (m_state == RSETTINGS) {
if (d7_hDown & KEY_B) { if (d7_hUp & KEY_B) {
std::fstream cfg_wrt(rd7i_config_path + "/config.rc7", std::ios::out); std::fstream cfg_wrt(rd7i_config_path + "/config.rc7", std::ios::out);
rd7i_config["metrik-settings"]["enableoverlay"] = rd7i_metrikd; rd7i_config["metrik-settings"]["enableoverlay"] = rd7i_metrikd;
rd7i_config["metrik-settings"]["Screen"] = rd7i_mt_screen; rd7i_config["metrik-settings"]["Screen"] = rd7i_mt_screen;