mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Ran rubocop autocorrect
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class IMICFPS
|
||||
class MainMenu < Menu
|
||||
def setup
|
||||
@@ -25,16 +26,16 @@ class IMICFPS
|
||||
end
|
||||
|
||||
gl_version = glGetString(GL_VERSION).to_s
|
||||
major, minor = gl_version.split(" ").first.split(".").map { |v| v.to_i }
|
||||
major, minor = gl_version.split(" ").first.split(".").map(&:to_i)
|
||||
unless (major == 3 && minor >= 3) || (major > 3)
|
||||
message =
|
||||
"<b><c=a00>[Notice]</c></b> Your computer is reporting support for <b><c=f50>OpenGL #{major}.#{minor}</c></b>,
|
||||
message =
|
||||
"<b><c=a00>[Notice]</c></b> Your computer is reporting support for <b><c=f50>OpenGL #{major}.#{minor}</c></b>,
|
||||
however <b><c=5f5>OpenGL 3.3 or higher is required.</c></b>
|
||||
|
||||
Fallback <b>immediate mode renderer</b> will be used."
|
||||
|
||||
linux_mesa_message =
|
||||
"
|
||||
linux_mesa_message =
|
||||
"
|
||||
|
||||
(Linux Only) For MESA based drivers append <b>--mesa-override</b>
|
||||
as a commandline argument to override reported version."
|
||||
@@ -46,9 +47,7 @@ as a commandline argument to override reported version."
|
||||
def draw
|
||||
super
|
||||
|
||||
if @old_gl_warning
|
||||
@old_gl_warning.draw(window.width / 2 - @old_gl_warning.width / 2, window.height - (@old_gl_warning.height + 10), Float::INFINITY)
|
||||
end
|
||||
@old_gl_warning&.draw(window.width / 2 - @old_gl_warning.width / 2, window.height - (@old_gl_warning.height + 10), Float::INFINITY)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user