View unanswered posts | View active topics It is currently Sat Apr 20, 2019 2:31 am



This topic is locked, you cannot edit posts or make further replies.  [ 408 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17  Next
bsnes v0.038 released 
Author Message
Trooper
User avatar

Joined: Tue Apr 19, 2005 11:08 pm
Posts: 376
Location: DFW area, TX USA
Post 
byuu wrote:
If I go with the Visual C++ model, I can write my code much cleaner and with no speed loss on Windows. But I'll suffer a ~10-15% speed penalty on Linux until GCC catches up to the 21st century. Is it worth it?


Depends on what you're after. I'd say go for it, but then I'm on Vista 64 :-P


Tue Jan 13, 2009 3:39 am
Profile WWW
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Post 
FitzRoy wrote:
The Win7 taskbar actually keeps the quicklaunch bar ... The taskbar is much too small an area to serve as a launch station for programs, it very badly needs to be reserved for actively running programs.


While I don't particularly like pinning apps and all that, I use my quicklaunch to run pretty much every program I have. I have a lot of stuff on my desktop, but that's mostly random folders with stuff I downloaded. Now I'm not saying my way is the best way, but it's fast - all I have to do is go down to the bottom of the screen and find the icon I need - most of them are easily recognisable. If I had to go to my desktop every time I wanted to open a new program that would be very annoying.


Tue Jan 13, 2009 3:58 am
Profile
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
One more question, byuu, besides the icon thing.

http://img67.imageshack.us/my.php?image=oddpp6.png

I always wondered why the entire line of an entry doesn't highlight. I agree with the slight indent/padding whatever, I just wish it would highlight.


Tue Jan 13, 2009 5:14 am
Profile
Lurker

Joined: Tue Apr 10, 2007 4:30 pm
Posts: 152
Location: Sweden
Post 
Ideally most icons should have 16x16 for the list view/taskbar/titlebar and 32x32 for normal big size. And if you want XP style big icons view? I am not sure about that size.


Tue Jan 13, 2009 7:18 am
Profile WWW
Inmate

Joined: Thu Jan 11, 2007 4:28 am
Posts: 1485
Location: Salem, Oregon
Post 
vector support for icons would be a real win for windows.

_________________
byuu wrote:
Seriously, what kind of asshole makes an old-school 2D emulator that requires a Core 2 to get full speed? >:(


Tue Jan 13, 2009 9:12 am
Profile WWW
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
Panzer88 wrote:
vector support for icons would be a real win for windows.


It does seem kind of silly to package a different image for each and every size. I wish it could be just one big one and the OS downsamples accordingly. Maybe that's harder than it sounds.


Tue Jan 13, 2009 9:31 am
Profile
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Post 
FitzRoy wrote:
I wish it could be just one big one and the OS downsamples accordingly. Maybe that's harder than it sounds.

Pixel art still beats it hands down for quality, but resizing isn't that difficult. It does it already of course, dunno if the quality could be improved. Wasn't the problem backwards compatibility with Windows 2k (which downsampled in appalling quality or something)?


Tue Jan 13, 2009 10:54 am
Profile
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
I tried adding 256 color versions several times and it didn't work. I'm not going to try figuring out why, that color depth is ancient history.


Tue Jan 13, 2009 2:22 pm
Profile
Post 
New WIP adds nothing new, but fixes Visual C++ compilation issues. Stopped windows.h from defining min/max again, disabled (bool)intmax_t stupidity, added a default: so VC doesn't assume a function has a blank return path, omitted -static on libco, and reverted to always using windres over rc. Express Edition lacks rc, and you already need GNU make anyway, so why bother supporting rc, too?

Quote:
Can you tell me what I should include?


It looks like the taskbar is only 32x32 ... yet the result looks really weird. Almost like the .ico file only has a 1-bit transparency mask or something :/

Image

As you can see, all the other icons look much sharper.

Quote:
I always wondered why the entire line of an entry doesn't highlight.


I have no idea ... don't see any other listview styles I can use that'd highlight the whole thing :/


Last edited by byuu on Tue Jan 13, 2009 3:14 pm, edited 1 time in total.



Tue Jan 13, 2009 3:12 pm
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Post 
Here's a somewhat interesting guide, though it's a specifically tailored for their program:

http://www.axialis.com/tutorials/tutori ... icons.html

(their program does look attractive, if a bit overkill - you could always try the trial)


Tue Jan 13, 2009 3:13 pm
Profile
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
You know, that looks like the 48x48 version is being downsampled to 32x32 instead of it using the 32x32 directly. Strange.

I think I'll try creating the ico file from a different program tonight.


Tue Jan 13, 2009 4:12 pm
Profile
Post 
Maybe. The desktop icon is the 48x48 one, and it looks fantastic. Perhaps we should see what kind of icons Firefox stores and copy it.

Even if we need a 256x256 PNG-compressed icon, that's fine by me.


Tue Jan 13, 2009 5:15 pm
Regular
User avatar

Joined: Tue Mar 07, 2006 10:32 am
Posts: 347
Location: The Netherlands
Post 
byuu wrote:
Even if we need a 256x256 PNG-compressed icon, that's fine by me.

Remember that only works on Vista (and Windows 7) though. You still need the other sizes for Windows XP, unless you want to store it as uncompressed data. (though since you use UPX, wouldn't it be compressed anyway?)


Tue Jan 13, 2009 5:55 pm
Profile
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
I can't even guess as to why that's happening. All icons, including the 32x32 one display correctly in XP, why wouldn't they in Win7? I'd love if you could find some other open source program you know that doesn't have the issue and compare icon formatting. I want to know what's in mine that's causing this.


Tue Jan 13, 2009 6:40 pm
Profile
Zealot
User avatar

Joined: Wed Jul 28, 2004 3:31 am
Posts: 1140
Post 
Verdauga Greeneyes wrote:
byuu wrote:
Even if we need a 256x256 PNG-compressed icon, that's fine by me.

Remember that only works on Vista (and Windows 7) though. You still need the other sizes for Windows XP, unless you want to store it as uncompressed data. (though since you use UPX, wouldn't it be compressed anyway?)

UPX cannot compress the icon which is used by the shell. It can, however, compress icons which are used internally by the program.


Tue Jan 13, 2009 10:43 pm
Profile WWW
Post 
One last thing I'd like to try and get in before v039 if possible: I'd like to multi-thread the Windows user interface, so that the menubar can be entered without freezing emulation. Not sure if it's feasible.

Idea is to have hiro call CreateThread right off the bat, write a shell function to queue window creation events so that it gains thread affinity for each window. From there, let it sit in a GetMessage() loop. Other threads can send window messages, so the user-side of hiro should be free to modify things at will. Whenever the lib-side needs to send an event, stick that in a queue instead and replace hiro::run() with a function to pull events from that queue.

Problem spots could pop up everywhere: the various video / audio / input APIs might not like being given HWNDs without thread affinity. Given the abstraction between those driver wrappers and the user interface library, I can't create a simple message passing layer to send redraw requests. Plus that thread could be frozen anyway when inside a WM_ENTERMENULOOP event.

SNESGT manages it though, so it has to be possible ...

Quote:
I'd love if you could find some other open source program you know that doesn't have the issue and compare icon formatting.


Pidgin uses 16x, 32x and 48x at 16, 256 and 24-bit color depth.
bsnes uses 16x, 24x, 32x and 48x at 256 and 24-bit color depth.
At a loss, myself. Maybe it's using the 24x for some reason, since the taskbar icons are slightly smaller than 32x?


Tue Jan 13, 2009 11:52 pm
Post 
Quote:
SNESGT manages it though, so it has to be possible ...


Project64 beta and alphas also manage to multithread the GUI during emulation.


Wed Jan 14, 2009 1:06 am
Lurker

Joined: Tue Apr 10, 2007 4:30 pm
Posts: 152
Location: Sweden
Post 
If all else fails, make the icons for each size radically different, like swapping around the colors, then you know what icon windows actually used as the source.


Wed Jan 14, 2009 7:24 am
Profile WWW
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
http://www.filehat.com/en/file/2450/sfclogo-ico.html

Try this one, I made it with the latest version of axialis. 16, 32, 48, and 256 with the 256 one PNG compressed.

If it fails, we'll mark them like henke suggests and try to find out why. My guess is that the presence of 24x24 was causing it to be used and upscaled before 32x32. What's confusing about these icon formats is that 24x24 doesn't seem to be used by Windows, yet it's included as an option. Going to save the icon in windows format, it gave me checkmarks for 16,24,32,48 and 256. Everything but 24x24 was checked by default. So is it or is it not a part of the standard? Confusing.


Wed Jan 14, 2009 9:08 am
Profile
New Member

Joined: Mon Feb 25, 2008 5:21 am
Posts: 9
Post 
An interesting turn of events relating to the early discussion about Qt's license.

http://www.qtsoftware.com/about/news/lg ... dded-to-qt

With the March release of Qt 4.5 comes the LGPL. Rather unexpected, but there you go. :P

Obviously I'm not expecting all this existing UI work in bsnes to be dropped all of a sudden, because it's more or less working fine. But this makes Qt that much more reasonable for consideration.


Wed Jan 14, 2009 10:40 am
Profile
Rookie

Joined: Wed Jul 02, 2008 3:35 pm
Posts: 23
Post 
I see I got beaten to the punch there. GPL-incompatibility has stopped a fair few applications I like from using Qt, placing it under the LGPL places it in the same category as GTK+, taking down one big barrier to it being used in such applications.


Wed Jan 14, 2009 11:50 am
Profile
Seen it all
User avatar

Joined: Mon Jan 03, 2005 5:04 pm
Posts: 2302
Location: Germany
Post 
FitzRoy wrote:
http://www.filehat.com/en/file/2450/sfclogo-ico.html

Try this one, I made it with the latest version of axialis. 16, 32, 48, and 256 with the 256 one PNG compressed.

Got an uncompressed version? My version of Microangelo can't load it...

_________________
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list


Wed Jan 14, 2009 1:21 pm
Profile WWW
Hazed

Joined: Mon Dec 24, 2007 2:03 am
Posts: 51
Location: Russia
Post 
Icons: Design concepts & Guidelines:

http://msdn.microsoft.com/en-us/library/aa511280.aspx

_________________
quake2xp audio engineer


Wed Jan 14, 2009 3:25 pm
Profile WWW
Veteran

Joined: Wed Aug 04, 2004 5:43 pm
Posts: 861
Location: Sloop
Post 
Oh, 24 is for toolbars. That should definitely be left out then.

creaothceann, the last time Microangelo was updated was 2005. It's not going to support a png compressed icon.


Wed Jan 14, 2009 3:39 pm
Profile
Post 
Ah, I figured it out.

When you run a normal application, Win7 draws the window class icon. But once you pin a program to the task panel, it uses the program's associated icon instead. Try it: pin bsnes and the icon becomes clean.

This sucks from a programming perspective ... Linux does not have resource files to attach icons and images, and the icon+controller C source encoding is breaking Visual C++ compilation. I'm at a loss for how to keep things portable and optimal at the same time.

Still, I'm happy with the new icon. 16x, 32x, 48x and 256x are what Microsoft is apparently recommending for future apps, and it's only ~11k or so. Not worried about classic 24x and 64x.

Thanks a million for making the updated icon, FitzRoy.


Wed Jan 14, 2009 3:49 pm
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 408 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.