From 45657ca701ea0376dec6d62c94436a34742020a5 Mon Sep 17 00:00:00 2001 From: xJunko Date: Sun, 14 Jul 2024 21:30:47 +0800 Subject: [PATCH] fixup!: minor stuff --- src/core/osu/runtime/gui/main_menu.v | 17 +++++++++++++++++ src/framework/ffmpeg/reader.v | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/core/osu/runtime/gui/main_menu.v b/src/core/osu/runtime/gui/main_menu.v index 9ef1830..2365d91 100644 --- a/src/core/osu/runtime/gui/main_menu.v +++ b/src/core/osu/runtime/gui/main_menu.v @@ -202,10 +202,27 @@ pub fn (mut main_menu MainMenu) draw(arg sprite.CommonSpriteArgument) { bold: true align: .right ) + main_menu.window.ctx.draw_text(int(settings.global.window.width) - 100, 32 + 20, 'A - Auto | P - Play | R - Replay', color: gg.Color{255, 255, 255, 255} size: 20 bold: true align: .right ) + + main_menu.window.ctx.draw_text(int(settings.global.window.width) - 100, 32 + 20 + 20, + 'Left-Right for difficulty selection', + color: gg.Color{255, 255, 255, 255} + size: 20 + bold: true + align: .right + ) + + main_menu.window.ctx.draw_text(int(settings.global.window.width) - 100, 32 + 20 + 20 + 20, + 'Up-Down for beatmap selection', + color: gg.Color{255, 255, 255, 255} + size: 20 + bold: true + align: .right + ) } diff --git a/src/framework/ffmpeg/reader.v b/src/framework/ffmpeg/reader.v index 93f1d51..a303716 100644 --- a/src/framework/ffmpeg/reader.v +++ b/src/framework/ffmpeg/reader.v @@ -22,22 +22,6 @@ pub fn (mut reader FFmpegReader) initialize_video_data() { if !os.exists(reader.video_path) { logging.error('Tried to read unexisting video file.') } - - // NOTE: We use gpu (sokol, opengl) to resize the video now instead of using ffmpeg, this should make it faster. - // // Resolution - // reader.target_resolution = [settings.global.window.width, settings.global.window.height]! - - // // Resize video to fit target_resolution - // mut ratio := reader.target_resolution[0] / reader.metadata.width - - // // Make sure both sides fits the screen - // for (reader.metadata.height * ratio) < reader.target_resolution[1] { - // ratio += 0.05 - // } - - // // Resize - // reader.metadata.width *= ratio - // reader.metadata.height *= ratio } pub fn (mut reader FFmpegReader) initialize_ffmpeg() {