summaryrefslogtreecommitdiff
path: root/test/src/mode/title.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/mode/title.rb')
-rw-r--r--test/src/mode/title.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/src/mode/title.rb b/test/src/mode/title.rb
index 6347b70..2e5a35b 100644
--- a/test/src/mode/title.rb
+++ b/test/src/mode/title.rb
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Frederico de Oliveira Linhares
+# Copyright 2022-2025 Frederico de Oliveira Linhares
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,12 +15,11 @@
module Mode
class Title
def initialize()
- @view = CandyGear::View2D.new(
+ @view = CandyGear::View.new(
CandyGear::Vector4D.new(0, 0, 1280, 720), 640, 360);
- CandyGear.views = [@view];
+ CandyGear.change_views([@view], 640, 360);
@menu = CandyGear::Menu.new(
- @view,
$global_data[:menu_view], 10, 10,
[
{text: "Demo", action: -> {change_mode(:demo);}},