Changeset 67
- Timestamp:
- 31/10/07 12:19:16 (1 year ago)
- Files:
-
- trunk/src/vlcskineditor/Main.java (modified) (5 diffs)
- trunk/src/vlcskineditor/Resources/Bitmap.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vlcskineditor/Main.java
r59 r67 683 683 else { 684 684 File f = base_fc.getSelectedFile(); 685 if(!f.getPath(). endsWith(".xml")) f = new File(f.getPath()+".xml");685 if(!f.getPath().toLowerCase().endsWith(".xml")) f = new File(f.getPath()+".xml"); 686 686 setTitle(f.getPath()+" - VLC Skin Editor "+VERSION); 687 687 s.createNew(f); … … 736 736 if(returnVal == JFileChooser.APPROVE_OPTION) { 737 737 f = vlt_saver.getSelectedFile(); 738 if(!f.getPath().toLowerCase().endsWith(".vlt")) f = new File(f.getPath()+".vlt"); 738 739 } 739 740 else return; 741 ProgressWindow pwin = new ProgressWindow(this,""); 742 pwin.setText("Creating VLT archive..."); 743 pwin.setVisible(true); 740 744 try { 741 745 TarGzOutputStream tgz = new TarGzOutputStream(new FileOutputStream(f)); … … 772 776 catch (IOException ex) { 773 777 ex.printStackTrace(); 778 pwin.setVisible(false); 774 779 JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE); 775 780 } … … 793 798 } 794 799 } 795 catch (IOException ex) { 800 catch (IOException ex) { 796 801 ex.printStackTrace(); 802 pwin.setVisible(false); 797 803 JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE); 798 804 } … … 801 807 802 808 tgz.close(); 809 pwin.setVisible(false); 803 810 JOptionPane.showMessageDialog(this,"VLT file created successfully!","VLT file created",JOptionPane.INFORMATION_MESSAGE); 804 811 } 805 catch (Exception ex) { 812 catch (Exception ex) { 806 813 ex.printStackTrace(); 814 pwin.setVisible(false); 807 815 JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE); 808 816 return; trunk/src/vlcskineditor/Resources/Bitmap.java
r66 r67 123 123 g2d.drawRect(x,y,0,0); 124 124 } 125 else if( alpha>0) {125 else if(image.getRGB(x,y)!=alphargb && alpha>0) { 126 126 g2d.setColor(new Color(red,green,blue)); 127 127 g2d.drawRect(x,y,0,0);
