Skip to content

Commit

Permalink
fixup!: minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunko committed Jul 14, 2024
1 parent 3cbb442 commit 45657ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 17 additions & 0 deletions src/core/osu/runtime/gui/main_menu.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
16 changes: 0 additions & 16 deletions src/framework/ffmpeg/reader.v
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 45657ca

Please sign in to comment.