png: replace several BMP assets with PNGs

This commit is contained in:
K. Lange 2020-04-24 14:30:12 +09:00
parent e5996aa4b4
commit 7dfb9c34ce
129 changed files with 50 additions and 50 deletions

View File

@ -76,7 +76,7 @@ static void redraw(void) {
static void init_default(void) {
title_str = "About ToaruOS";
icon_path = "/usr/share/logo_login.bmp";
icon_path = "/usr/share/logo_login.png";
{
version_str = malloc(100);

View File

@ -2174,12 +2174,12 @@ int main(int argc, char * argv[]) {
TRACE("Loading sprites...");
#define MOUSE_DIR "/usr/share/cursor/"
load_sprite(&yg->mouse_sprite, MOUSE_DIR "mouse.bmp");
load_sprite(&yg->mouse_sprite_drag, MOUSE_DIR "drag.bmp");
load_sprite(&yg->mouse_sprite_resize_v, MOUSE_DIR "resize-vertical.bmp");
load_sprite(&yg->mouse_sprite_resize_h, MOUSE_DIR "resize-horizontal.bmp");
load_sprite(&yg->mouse_sprite_resize_da, MOUSE_DIR "resize-uldr.bmp");
load_sprite(&yg->mouse_sprite_resize_db, MOUSE_DIR "resize-dlur.bmp");
load_sprite(&yg->mouse_sprite, MOUSE_DIR "normal.png");
load_sprite(&yg->mouse_sprite_drag, MOUSE_DIR "drag.png");
load_sprite(&yg->mouse_sprite_resize_v, MOUSE_DIR "resize-vertical.png");
load_sprite(&yg->mouse_sprite_resize_h, MOUSE_DIR "resize-horizontal.png");
load_sprite(&yg->mouse_sprite_resize_da, MOUSE_DIR "resize-uldr.png");
load_sprite(&yg->mouse_sprite_resize_db, MOUSE_DIR "resize-dlur.png");
TRACE("Done.");
TRACE("Initializing variables...");

View File

@ -56,7 +56,7 @@ static int BOX_COLOR_G=0;
static int BOX_COLOR_B=0;
static int BOX_COLOR_A=127;
static char * WALLPAPER = "/usr/share/wallpaper.jpg";
static char * LOGO = "/usr/share/logo_login.bmp";
static char * LOGO = "/usr/share/logo_login.png";
#define TEXTBOX_INTERIOR_LEFT 4
#define EXTRA_TEXT_OFFSET 15

View File

@ -362,7 +362,7 @@ static void update_weather_status(void) {
if (!hashmap_has(weather_icons, icon)) {
sprite_t * tmp = malloc(sizeof(sprite_t));
char path[512];
sprintf(path,"/usr/share/icons/weather/%s.bmp", icon);
sprintf(path,"/usr/share/icons/weather/%s.png", icon);
load_sprite(tmp, path);
hashmap_set(weather_icons, icon, tmp);
}
@ -1365,7 +1365,7 @@ struct MenuEntry * menu_create_clock(void) {
if (!watchface) {
watchface = malloc(sizeof(sprite_t));
load_sprite(watchface, "/usr/share/icons/watchface.bmp");
load_sprite(watchface, "/usr/share/icons/watchface.png");
}
out->_type = -1; /* Special */
@ -1522,8 +1522,8 @@ int main (int argc, char ** argv) {
sprite_panel = malloc(sizeof(sprite_t));
sprite_logout = malloc(sizeof(sprite_t));
load_sprite(sprite_panel, "/usr/share/panel.bmp");
load_sprite(sprite_logout, "/usr/share/icons/panel-shutdown.bmp");
load_sprite(sprite_panel, "/usr/share/panel.png");
load_sprite(sprite_logout, "/usr/share/icons/panel-shutdown.png");
struct stat stat_tmp;
if (!stat("/dev/dsp",&stat_tmp)) {
@ -1533,10 +1533,10 @@ int main (int argc, char ** argv) {
sprite_volume_low = malloc(sizeof(sprite_t));
sprite_volume_med = malloc(sizeof(sprite_t));
sprite_volume_high = malloc(sizeof(sprite_t));
load_sprite(sprite_volume_mute, "/usr/share/icons/24/volume-mute.bmp");
load_sprite(sprite_volume_low, "/usr/share/icons/24/volume-low.bmp");
load_sprite(sprite_volume_med, "/usr/share/icons/24/volume-medium.bmp");
load_sprite(sprite_volume_high, "/usr/share/icons/24/volume-full.bmp");
load_sprite(sprite_volume_mute, "/usr/share/icons/24/volume-mute.png");
load_sprite(sprite_volume_low, "/usr/share/icons/24/volume-low.png");
load_sprite(sprite_volume_med, "/usr/share/icons/24/volume-medium.png");
load_sprite(sprite_volume_high, "/usr/share/icons/24/volume-full.png");
/* XXX store current volume */
}
@ -1544,9 +1544,9 @@ int main (int argc, char ** argv) {
widgets_network_enabled = 1;
widgets_width += WIDGET_WIDTH;
sprite_net_active = malloc(sizeof(sprite_t));
load_sprite(sprite_net_active, "/usr/share/icons/24/net-active.bmp");
load_sprite(sprite_net_active, "/usr/share/icons/24/net-active.png");
sprite_net_disabled = malloc(sizeof(sprite_t));
load_sprite(sprite_net_disabled, "/usr/share/icons/24/net-disconnected.bmp");
load_sprite(sprite_net_disabled, "/usr/share/icons/24/net-disconnected.png");
}
/* TODO Probably should use the app launch shortcut */

View File

@ -232,9 +232,9 @@ int main (int argc, char ** argv) {
ball.vel_x = -10.0;
fprintf(stderr, "Loading sprites...\n");
load_sprite(&left.sprite, GAME_PATH "/paddle-red.bmp");
load_sprite(&right.sprite,GAME_PATH "/paddle-blue.bmp");
load_sprite(&ball.sprite, GAME_PATH "/ball.bmp");
load_sprite(&left.sprite, GAME_PATH "/paddle-red.png");
load_sprite(&right.sprite,GAME_PATH "/paddle-blue.png");
load_sprite(&ball.sprite, GAME_PATH "/ball.png");
redraw();
update_left();

View File

@ -327,7 +327,7 @@ int main(int argc, char * argv[]) {
window = yutani_window_create(yctx, width + bounds.width, height + bounds.height);
/* Load icons */
load_sprite(&logo, "/usr/share/logo_login.bmp");
load_sprite(&logo, "/usr/share/logo_login.png");
load_sprite(&terminal, "/usr/share/icons/48/utilities-terminal.bmp");
load_sprite(&folder, "/usr/share/icons/48/folder.bmp");
load_sprite(&package, "/usr/share/icons/48/package.bmp");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

View File

@ -1 +0,0 @@
02d.bmp

View File

@ -0,0 +1 @@
02d.png

View File

@ -1 +0,0 @@
02n.bmp

View File

@ -0,0 +1 @@
02n.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

View File

@ -1 +0,0 @@
09d.bmp

View File

@ -0,0 +1 @@
09d.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

View File

@ -1 +0,0 @@
10d.bmp

View File

@ -0,0 +1 @@
10d.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

View File

@ -1 +0,0 @@
11d.bmp

View File

@ -0,0 +1 @@
11d.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

View File

@ -1 +0,0 @@
13d.bmp

View File

@ -0,0 +1 @@
13d.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

View File

@ -1 +0,0 @@
50d.bmp

View File

@ -0,0 +1 @@
50d.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

BIN
base/usr/share/panel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Some files were not shown because too many files have changed in this diff Show More