ICON update

This commit is contained in:
David Freese 2010-08-23 06:25:29 -05:00
parent 925fb436b3
commit 41739319b2
9 changed files with 2222 additions and 1886 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before After
Before After

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

View file

@ -54,6 +54,7 @@
#include "fileselect.h"
#include "wrap.h"
#include "status.h"
#include "pixmaps.h"
#ifdef WIN32
# include "flmsgrc.h"
@ -367,6 +368,29 @@ void set_main_label()
mainwindow->label(main_label.c_str());
}
#define KNAME "fllog"
#if !defined(__WIN32__) && !defined(__APPLE__)
Pixmap flmsg_icon_pixmap;
void make_pixmap(Pixmap *xpm, const char **data)
{
Fl_Window w(0,0, KNAME);
w.xclass(KNAME);
w.show();
w.make_current();
Fl_Pixmap icon(data);
int maxd = (icon.w() > icon.h()) ? icon.w() : icon.h();
*xpm = fl_create_offscreen(maxd, maxd);
fl_begin_offscreen(*xpm);
fl_color(FL_BACKGROUND_COLOR);
fl_rectf(0, 0, maxd, maxd);
icon.draw(maxd - icon.w(), maxd - icon.h());
fl_end_offscreen();
}
#endif
int main(int argc, char *argv[])
{
if (argc > 1) {
@ -420,12 +444,20 @@ char dirbuf[FL_PATH_MAX + 1];
tab_ics213->show();
#ifdef WIN32
#if defined(__WOE32__)
# ifndef IDI_ICON
# define IDI_ICON 101
# endif
mainwindow->icon((char*)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_ICON)));
mainwindow->show(1, argv);
mainwindow->show (argc, argv);
#elif !defined(__APPLE__)
make_pixmap(&flmsg_icon_pixmap, flmsg_icon);
mainwindow->icon((char *)flmsg_icon_pixmap);
mainwindow->show(argc, argv);
#else
mainwindow->show(argc, argv);
#endif
set_main_label();
show_filename(defFileName);

0
src/flmsg_dialog.fl Executable file → Normal file
View file

View file

@ -81,10 +81,9 @@ extern const char *rx2_icon[];
extern const char *tx2_icon[];
extern const char *rx_icon[];
extern const char *tx_icon[];
extern const char *fldigi_icon[];
extern const char *flarq_icon[];
extern const char *waterfall_icon[];
extern const char *dice_icon[];
extern const char *pskr_icon[];
extern const char *flmsg_icon[];
#endif // PIXMAPS_H_

File diff suppressed because it is too large Load diff