Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot draw text on multiple windows #177

Open
BadCodr opened this issue Jul 17, 2024 · 0 comments
Open

Cannot draw text on multiple windows #177

BadCodr opened this issue Jul 17, 2024 · 0 comments

Comments

@BadCodr
Copy link

BadCodr commented Jul 17, 2024

Descritpion

I am unable to draw text on two different windows using splashkit. The text is only displayed on the first window which is drawn; whilst text is not drawn on the second window.

Steps to reproduce

  1. Open two windows using splashkit,
  2. Attempt to draw text on both windows

Code Example

    public static void Main()
    {
        Window window1 = new Window("First window", 200, 200);
        Window window2 = new Window("Second window", 200, 200);

        window1.DrawRectangle(Color.Black, 40, 40, 40, 40);
        window1.DrawText("test", Color.Black, 40, 40);
        window1.Refresh();

        window2.DrawRectangle(Color.Black, 40, 40, 40, 40);
        window2.DrawText("test123", Color.Black, 40, 40);
        window2.Refresh();

        SplashKit.Delay(5000);
    }

Output

image

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

No branches or pull requests

1 participant