Buggy code:
public class Main implements Runnable { private Thread thread ; private boolean running = false ; public World world ; public int fps_lock ; private double public_delta = 0 ; private int public_fps ; public static void main ( String [ ] args ) { } public synchronized void start ( ) { } public synchronized void stop ( ) { } private void init ( ) { Settings . SettingsLoader ( ) ; DisplayMode mode = null ; try { DisplayMode [ ] modes = Display . getAvailableDisplayModes ( ) ; for ( int i = 0 ; i < ( modes . length ) ; i ++ ) <START_BUG> if ( ( ( ( ( modes [ i ] . getBitsPerPixel ( ) ) == 16 ) && ( ( modes [ i ] . getFrequency ( ) ) == 60 ) ) && ( ( modes [ i ] . getWidth ( ) ) >= 800 ) ) && ( ( modes [ i ] . getHeight ( ) ) >= 600 ) ) <END_BUG> Registry . registerDisplayMode ( modes [ i ] ) ; if ( ( Boolean . valueOf ( ( ( String ) ( Registry . getSetting ( "fullscreen_windowed" ) ) ) ) ) && ( ! ( Boolean . valueOf ( ( ( String ) ( Registry . getSetting ( "fullscreen" ) ) ) ) ) ) ) { Dimension screenSize = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; int width = ( ( int ) ( screenSize . getWidth ( ) ) ) ; int height = ( ( int ) ( screenSize . getHeight ( ) ) ) ; mode = Registry . getDisplayMode ( width , height ) ; Registry . registerSetting ( "screen_width" , ( "" + width ) ) ; Registry . registerSetting ( "screen_height" , ( "" + height ) ) ; Display . setLocation ( ( - 3 ) , ( - 20 ) ) ; } if ( mode == null ) { for ( int i = 0 ; i < ( modes . length ) ; i ++ ) { if ( ( ( ( ( modes [ i ] . getWidth ( ) ) == ( Registry . getScreenWidth ( ) ) ) && ( ( modes [ i ] . getHeight ( ) ) == ( Registry . getScreenHeight ( ) ) ) ) && ( ( modes [ i ] . getBitsPerPixel ( ) ) >= 32 ) ) && ( ( modes [ i ] . getFrequency ( ) ) == 60 ) ) { mode = modes [ i ] ; break ; } } } Display . setDisplayMode ( mode ) ; Display . setFullscreen ( Boolean . valueOf ( ( ( String ) ( Registry . getSetting ( "fullscreen" ) ) ) ) ) ; Display . setVSyncEnabled ( Boolean . valueOf ( ( ( String ) ( Registry . getSetting ( "vsync" ) ) ) ) ) ; Display . setTitle ( fullname ) ; Display . create ( new PixelFormat ( 0 , 16 , 1 ) ) ; fps_lock = Integer . parseInt ( ( ( String ) ( Registry . getSetting ( "fps_lock" ) ) ) ) ; } catch ( LWJGLException e ) { e . printStackTrace ( ) ; } Registry . registerFont ( new Font ( ) ) ; System . out . println ( ( "Resolution<seq2seq4repair_space>" + ( mode . toString ( ) ) ) ) ; System . out . println ( ( "OS<seq2seq4repair_space>name<seq2seq4repair_space>" + ( System . getProperty ( "os.name" ) ) ) ) ; System . out . println ( ( "OS<seq2seq4repair_space>version<seq2seq4repair_space>" + ( System . getProperty ( "os.version" ) ) ) ) ; System . out . println ( ( "LWJGL<seq2seq4repair_space>version<seq2seq4repair_space>" + ( Sys . getVersion ( ) ) ) ) ; System . out . println ( ( "OpenGL<seq2seq4repair_space>version<seq2seq4repair_space>" + ( GL11 . glGetString ( GL_VERSION ) ) ) ) ; Texture . preload ( ) ; Registry . registerMainClass ( this ) ; Registry . registerMenu ( new MainMenu ( ) ) ; Registry . getMenu ( 0 ) . open ( ) ; glMatrixMode ( GL_PROJECTION ) ; glLoadIdentity ( ) ; glOrtho ( 0 , Registry . getScreenWidth ( ) , Registry . getScreenHeight ( ) , 0 , 1 , ( - 1 ) ) ; glMatrixMode ( GL_MODELVIEW ) ; glEnable ( GL_TEXTURE_2D ) ; glEnable ( GL_STENCIL_TEST ) ; glClearColor ( 0 , 0 , 0 , 0 ) ; } public void run ( ) { } private void render ( ) { } private void update ( double delta ) { } private void tick ( ) { } private void cleanup ( ) { } public void setWorld ( World w ) { } public boolean isRunning ( ) { } public World getWorld ( ) { } public double getDelta ( ) { } public double getFPS ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( ( ( modes [ i ] . getFrequency ( ) ) == 60 ) && ( ( modes [ i ] . getWidth ( ) ) >= 800 ) ) && ( ( modes [ i ] . getHeight ( ) ) >= 600 ) )