Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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 1565 times)
0 Members and 1 Guest are viewing this topic.
Offline Kommi

Junior Devvie

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?  

Offline bedelf

Junior Devvie

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, );
                       surface.drawBuffer( g ); // draws my offscreen image
                 } finally {
Offline Kommi

Junior Devvie

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.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bedelf

Junior Devvie

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 Spiffy Duke »

Medals: 625
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 Devvie

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.

Dwinin (63 views)
2015-11-07 13:29:08

Rems19 (77 views)
2015-10-31 01:36:56

Rems19 (69 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (105 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (114 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (167 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!