Welcome! Log In Create A New Profile

Advanced

Green screen on homebrew startup

Posted by shardrillMorden 
Green screen on homebrew startup
July 17, 2009 06:28PM
I have noticed that a lot of homebrew (but not all) flashes a green screen at startup.

Is this due to an error or missed step during video init?

I have noticed that all the homebrew I write does it and was wondering if anyone could offer some insight into why, and how to proper initialize the video to avoid it?

TIA
Re: Green screen on homebrew startup
July 17, 2009 07:16PM
I've not seen that but I guess it depends on the video library you're using. What are you planning to use?
Re: Green screen on homebrew startup
July 17, 2009 10:40PM
I used to see that, but I haven't seen it for a while. Maybe it's an IOS thing?
Re: Green screen on homebrew startup
July 19, 2009 07:37PM
I think it happens if you initialize and enable the video before you actually fill a framebuffer with data. Calling "VIDEO_SetBlack(FALSE);" before you do any framebuffer filling. But that's just a guess.
Re: Green screen on homebrew startup
July 19, 2009 08:31PM
That sounds right to me. Before you write anything to the framebuffer, it is still filled with garbage.
Re: Green screen on homebrew startup
July 22, 2009 04:54PM
Ok, when I get a chance I'll try that, Thanks!
Re: Green screen on homebrew startup
July 23, 2009 09:13AM
Yes, the solution is to clear the framebuffers before calling VIDEO_SetBlack(FALSE).

VIDEO_ClearFrameBuffer (vmode, xfb[0], COLOR_BLACK);
VIDEO_ClearFrameBuffer (vmode, xfb[1], COLOR_BLACK);
VIDEO_SetNextFramebuffer (xfb[0]);

VIDEO_SetBlack (FALSE);
Sorry, only registered users may post in this forum.

Click here to login