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

Cut canvas on the 3rd(and the next) full screen switching #6

Closed
D0NM opened this issue Jan 25, 2017 · 1 comment
Closed

Cut canvas on the 3rd(and the next) full screen switching #6

D0NM opened this issue Jan 25, 2017 · 1 comment

Comments

@D0NM
Copy link

D0NM commented Jan 25, 2017

The init:

GLOBAL_SETTING = {
    FULL_SCREEN = false,
    WINDOW_WIDTH = 640,
    WINDOW_HEIGHT = 480
}

    push:setupScreen(GLOBAL_SETTING.WINDOW_WIDTH, GLOBAL_SETTING.WINDOW_HEIGHT,
	GLOBAL_SETTING.WINDOW_WIDTH, GLOBAL_SETTING.WINDOW_HEIGHT,
        {fullscreen = GLOBAL_SETTING.FULL_SCREEN, resizable = false})

Usage:
push:switchFullscreen()
I get cut canvas after switching modes Window -> FullScreen -> Window -> FullScreen
It looks like some values get broken.

My workaround:

	--this workaround makes PUSH lib switch full screen/window w/o problems
	--passing the constant screen resolution every time
    push:switchFullscreen(GLOBAL_SETTING.WINDOW_WIDTH,GLOBAL_SETTING.WINDOW_HEIGHT)

I use "push" in our open source game project Zabuyaki
https://github.com/thomasgoldstein/zabuyaki
It is easy to check. Use F11 to switch Windowed/FullScreen modes.
controls: X key - Ok, C key - Cancel, Arrow keys

@Ulydev
Copy link
Owner

Ulydev commented Jan 25, 2017

fixed in 476290d

@Ulydev Ulydev closed this as completed Jan 25, 2017
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

2 participants