Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Am I the only one who is still getting this bug?  (Read 1024 times)
0 Members and 1 Guest are viewing this topic.
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Posted 2003-06-02 02:16:49 »

I read in the 1.4.2 beta notes that the bug that causes a whie scren to appear an you have to alt tab in order to get to the program was fixed. It happens to me quite often when I launch my full screen app. Anyone else still experiencing this prob? I am using a native timer so could that be the source of this?  

Kommi
Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #1 - Posted 2003-06-02 02:33:27 »

Meh, basically fullscreen is going to be broken till 1.5. I think theres a way to get it going IN to fullscreen properly (i'm not convinced), but you can't switch back and forth or any of the stuff that I wanted.

Luckily you can program *very* easily for windowed/fullscreen with BufferStrategy and just wait for the update. You just gotta put some extra stuff in there to get the frame insets to translate your final buffer flip, and you can pretty much ignore if your in fullscreen or not in the rest of the code.

Or you could learn some OpenGL and use LWJGL. Tongue

edit: for fun since im on the phone ill post my code Tongue i was using something like this, i had buffer surfaces which could be a normal back buffer, or a more complex circular buffer, but when i was done drawing to those (its just an offscreen image) i would need to flip

     public void showSurface() {
           BufferStrategy bufStrat = frame.getBufferStrategy();
           Insets insets = frame.getInsets();

           if ( ! bufStrat.contentsLost() ) {
                 Graphics g = null;
                       
                 try {
                       g = bufStrat.getDrawGraphics();
                       g.translate( insets.left, insets.top );
                       surface.drawBuffer( g ); // draws my offscreen image
                 } finally {
                       g.dispose();
                 }
                       
                 bufStrat.show();
           }
     }
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #2 - Posted 2003-06-02 05:41:25 »

What are you using for the timer? Wouldn't you still get the white sceen with this code?
Its a shame that it is still not fixed. I am writting the code properly (like I have seen others on this forum suggest) so I am guesing that hen 1.5 gets released, or the final version fo 1.4.2, then everything will work fine.

Kommi
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #3 - Posted 2003-06-02 06:14:38 »

I wasn't dealing with the timer stuff, it was one of those things I wasn't going to deal with until I had to, though, now that I'm using LWJGL I don't have to worry about it.

That code was just dealing with how you can easier write your code for windowed mode but have it setup so you can switch to fullscreen when it's fixed without lifting a finger. (and you could write some windowed/fullscreen switching methods)

I think it's stuck waiting for 1.5 because they ran into some problems that can only be fixed through some reworking of major parts of the AWT. Not something you wanna screw with on a current version and break all kinds of things.

edit: just for fun, are you sunchronizing on Frame.getTreeLock() (i think thats it anyways) when you create the strategy? That was a workaround if I remember correctly. Theres some old threads on here detailing it a bit, but I can't remember exactly what to do other then synchronized ( frame.getTreeLock() ) {//some fullscreen code} being in there somewhere
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #4 - Posted 2003-06-02 11:14:59 »

...ah, except the LWJGL is currently stumbling over the white-screen bug at the moment, which seems to manifest itself on TNT2/AMD systems. Apparently. More info when we find a cure.

Cas Smiley

Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #5 - Posted 2003-06-02 12:08:57 »

Don't pay any attention to the man behind the curtain! Grin

I wanna say that sounds more like a hardware problem then anything wrong with LWJGL considering it's a known issue with AMD/TNT2's/opengl, but he is playing CS on that machine.

;/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (124 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.127 seconds with 20 queries.