Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
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 1268 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 00: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 00: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 03: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!
Legends of Yore - The Casual Retro Roguelike
Offline bedelf

Junior Member




Are you suggesting coconuts migrate?


« Reply #3 - Posted 2003-06-02 04: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

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2003-06-02 09: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 10: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.

 

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

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!