Thread: Something wrong with my drawLogo method

Results 1 to 2 of 2
  1. #1 Something wrong with my drawLogo method 
    Registered Member
    Join Date
    Apr 2008
    Posts
    506
    Thanks given
    26
    Thanks received
    0
    Rep Power
    35
    drawLogo method.

    Code:
    	private void drawLogo() {
    		byte abyte0[] = titleStreamLoader.getDataForName("title.dat");
    		Sprite sprite = new Sprite(abyte0, this);
    		
    		if (normalLogin == true) {
    			
    			leftSideFlame.initDrawingArea();
    	        sprite.method346(0, 0);
    	        rightSideFlame.initDrawingArea();
    	        sprite.method346(-637, 0);
    	        aRSImageProducer_1107.initDrawingArea();
    	        sprite.method346(-128, 0);
    	        aRSImageProducer_1108.initDrawingArea();
    	        sprite.method346(-202, -371);
    	        loginScreenArea.initDrawingArea();
    	        sprite.method346(0, 0);
    	        gameLogo.initDrawingArea();
    	        sprite.method346(0, -265);
    	        aRSImageProducer_1113.initDrawingArea();
    	        sprite.method346(-562, -265);
    	        aRSImageProducer_1114.initDrawingArea();
    	        sprite.method346(-128, -171);
    	        aRSImageProducer_1115.initDrawingArea();
    	        sprite.method346(-562, -171);
    	        
    			
    	        int backgroundPixels[] = new int[sprite.myWidth];
    	        for (int j = 0; j < sprite.myHeight; j++) {
    	            for (int k = 0; k < sprite.myWidth; k++)
    	                backgroundPixels[k] = sprite.myPixels[(sprite.myWidth - k - 1) + sprite.myWidth * j];
    
    	            System.arraycopy(backgroundPixels, 0, sprite.myPixels, sprite.myWidth * j, sprite.myWidth);
    
    	        }
    			
    		} else {
    			int ai[] = new int[sprite.myWidth];
    			for (int j = 0; j < sprite.myHeight; j++) {
    				for (int k = 0; k < sprite.myWidth; k++)
    					ai[k] = sprite.myPixels[(sprite.myWidth - k - 1)
    							+ sprite.myWidth * j];
    				System.arraycopy(ai, 0, sprite.myPixels, sprite.myWidth * j,
    						sprite.myWidth);
    			}
    			LFull = new Sprite("Login/Random/LFull.png");
    			LEmpty = new Sprite("Login/Random/LEmpty.png");
    			Sprite logo = new Sprite(signlink.findcachedir()
    					+ "/Sprites/Logo.PNG");
    			logo.drawSprite(385 - 174 - 174, 14 + 25);
    			loginScreenArea.initDrawingArea();
    			sprite.method346(0, 0);
    		}
    		sprite = null;
    		Object obj = null;
    		Object obj1 = null;
    		System.gc();
    	}
    Whenever my drawLogo method is called, my client's background will not load. It's just black.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2008
    Posts
    3,532
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    check the title.dat in your cache and make sure its not messed up.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. java.lang.NullPointerException
    By QWERTYownz in forum Help
    Replies: 5
    Last Post: 01-01-2011, 07:20 AM
  2. Replies: 0
    Last Post: 10-18-2009, 04:35 AM
  3. java.lang.NullPointerException
    By Neekage in forum Help
    Replies: 1
    Last Post: 10-10-2009, 10:47 PM
  4. Replies: 9
    Last Post: 10-08-2009, 12:12 AM
  5. Replies: 8
    Last Post: 05-25-2009, 01:22 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •