Skip to content

Inconsistent Window Height/Width units between constructor and UpdateSize #54

Description

@Demorome

The Window constructor uses SDL.SDL_GetWindowSize:

SDL.SDL_GetWindowSize(Handle, out var width, out var height);

Yet UpdateSize uses SDL.SDL_GetWindowSizeInPixels:

SDL.SDL_GetWindowSizeInPixels(Handle, out var w, out var h);

I feel like UpdateSize should be changed to use SDL.SDL_GetWindowSize, for consistency.
And because there's no "InPixels" equivalent to SDL.SDL_SetWindowSize, which is called by Window.SetSize.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions