RL_GetWindowSize renamed to RL_GetScreenSize.
This commit is contained in:
@@ -11,7 +11,7 @@ function init()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -65,7 +65,7 @@ function init()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
winSize = RL_GetWindowSize()
|
||||
winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowTitle( "ReiLuaGui examples" )
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
|
||||
@@ -138,7 +138,7 @@ function init()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
winSize = RL_GetWindowSize()
|
||||
winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowTitle( "ReiLuaGui Test" )
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
|
||||
@@ -4,7 +4,7 @@ local camera = -1
|
||||
local texture = -1
|
||||
local textureSize = { 256, 96 }
|
||||
local res = { 384, 216 }
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
local winScale = 4
|
||||
local framebuffer = -1
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ local matrix = {}
|
||||
function init()
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -8,7 +8,7 @@ local textImage = -1
|
||||
function init()
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -22,7 +22,7 @@ function init()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowSize( winSize )
|
||||
|
||||
@@ -15,7 +15,7 @@ local animSpeed = 60
|
||||
function init()
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -13,7 +13,7 @@ local matrix = {}
|
||||
function init()
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -34,7 +34,7 @@ function process( delta )
|
||||
end
|
||||
|
||||
if RL_IsWindowResized() then
|
||||
winSize = RL_GetWindowSize()
|
||||
winSize = RL_GetScreenSize()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ end
|
||||
|
||||
function process( delta )
|
||||
if RL_IsWindowResized() then
|
||||
winSize:set( RL_GetWindowSize() )
|
||||
winSize:set( RL_GetScreenSize() )
|
||||
end
|
||||
|
||||
playerMovement( delta )
|
||||
|
||||
@@ -6,7 +6,7 @@ local function setupWindow()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -11,7 +11,7 @@ local secondsLoc
|
||||
function init()
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
RL_SetWindowState( FLAG_VSYNC_HINT )
|
||||
|
||||
@@ -13,7 +13,7 @@ function init()
|
||||
local monitor = 0
|
||||
local mPos = RL_GetMonitorPosition( monitor )
|
||||
local mSize = RL_GetMonitorSize( monitor )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
RL_SetWindowTitle( "Waving cubes" )
|
||||
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
|
||||
|
||||
@@ -11,7 +11,7 @@ end
|
||||
function process( delta )
|
||||
if RL_IsKeyPressed( KEY_ENTER ) then
|
||||
local textSize = RL_MeasureText( 0, text, 20, 2 )
|
||||
local winSize = RL_GetWindowSize()
|
||||
local winSize = RL_GetScreenSize()
|
||||
|
||||
textColor = BLUE
|
||||
textPos = { winSize[1] / 2 - textSize[1] / 2, winSize[2] / 2 - textSize[2] / 2 }
|
||||
|
||||
Reference in New Issue
Block a user