Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 9:42 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jun 22, 2012 7:52 pm 
Offline

Joined: Fri Jun 22, 2012 7:48 pm
Posts: 1
I'm having an issue (Windows 7) where the entire game window will flash every couple seconds. Here's the minimum amount of code that reproduces the issue:

Code:
package Main;
import org.newdawn.slick.*;
public class Main extends BasicGame{
   
    public Main() {
        super("Flashing window issue");
    }

    @Override
    public void init(GameContainer gc) throws SlickException {
    }

    @Override
    public void update(GameContainer gc, int delta) throws SlickException {
    }

    @Override
    public void render(GameContainer gc, Graphics g) throws SlickException {
    }

    public static void main(String[] args) throws SlickException {
         AppGameContainer app = new AppGameContainer(new Main());
         app.setDisplayMode(800, 600, false);
         app.start();
         
    }
}


What happens is that every couple seconds, the game window will disappear briefly and then reappear. Also, the window's rectangular icon in the taskbar disappears and then reappears (specifically it disappears immediately when the window does, and then when the window reappears milliseconds later, it slides back into place).

How do I fix this?

Thanks!


Top
 Profile  
 
PostPosted: Sat Jun 23, 2012 10:36 am 
Offline
Game Developer
User avatar

Joined: Thu Mar 03, 2011 6:22 pm
Posts: 534
This does not sound like a Slick2D issue....
Which Slick2D Version do you use?
Do you use the LWJGL Version coming with Slick2D? (If you use the current branch it should be fine)

_________________
Current Projects:
Image Mr. Hat I
Image Vegan Vs. Zombies
Projects:
RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group