Skip to content

fix window resize#36

Merged
milanjrodd merged 1 commit intorodd-oss:new-apifrom
bitver:bittable
May 8, 2025
Merged

fix window resize#36
milanjrodd merged 1 commit intorodd-oss:new-apifrom
bitver:bittable

Conversation

@bitver
Copy link
Contributor

@bitver bitver commented May 6, 2025

No description provided.

c.Camera2D.Offset = rl.Vector2(vectors.Vec2{X: float32(width), Y: float32(height)}.Scale(0.5))
fb := s.FrameBuffer2D.GetUnsafe(s.mainCamera)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(width), int32(height))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
c.Camera2D.Offset = rl.Vector2(vectors.Vec2{X: float32(width), Y: float32(height)}.Scale(0.5))
fb := s.FrameBuffer2D.GetUnsafe(s.mainCamera)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(width), int32(height))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
c.Offset = rl.Vector2(vectors.Vec2{X: float32(width), Y: float32(height)}.Scale(0.5))
fb := s.FrameBuffer2D.GetUnsafe(s.minimapCamera)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(width), int32(height))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
c.Offset = rl.Vector2(vectors.Vec2{X: float32(width), Y: float32(height)}.Scale(0.5))
fb := s.FrameBuffer2D.GetUnsafe(s.minimapCamera)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(width), int32(height))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
s.monitorHeight = rl.GetScreenHeight()
fb := s.FrameBuffer2D.GetUnsafe(s.frameBuffer)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(s.monitorWidth), int32(s.monitorHeight))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
s.monitorHeight = rl.GetScreenHeight()
fb := s.FrameBuffer2D.GetUnsafe(s.frameBuffer)
rl.UnloadRenderTexture(fb.Texture)
fb.Texture = rl.LoadRenderTexture(int32(s.monitorWidth), int32(s.monitorHeight))

Check failure

Code scanning / gosec

integer overflow conversion uint64 -> uint32 Error

integer overflow conversion int -> int32
@milanjrodd milanjrodd merged commit e55bb98 into rodd-oss:new-api May 8, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants