mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-26 21:58:41 +01:00
new cropped faces, used by default
This commit is contained in:
parent
4b44c772ef
commit
dfa9a3a55e
3 changed files with 11 additions and 11 deletions
BIN
dist/hp49g+-cropped.png
vendored
Normal file
BIN
dist/hp49g+-cropped.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 304 KiB |
BIN
dist/hp50g-cropped.png
vendored
Normal file
BIN
dist/hp50g-cropped.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 KiB |
22
src/ui.c
22
src/ui.c
|
@ -2901,7 +2901,7 @@ x49gp_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
|
||||||
case UI_CALCULATOR_HP49GP_NEWRPL:
|
case UI_CALCULATOR_HP49GP_NEWRPL:
|
||||||
x49gp_ui_draw_text(cr, &widget->style->black,
|
x49gp_ui_draw_text(cr, &widget->style->black,
|
||||||
X49GP_UI_NORMAL_FONT, 15.0, 0.0,
|
X49GP_UI_NORMAL_FONT, 15.0, 0.0,
|
||||||
38, 42, 2,
|
14 /* 38 */, 20 /* 42 */, 2,
|
||||||
CAIRO_FONT_SLANT_NORMAL,
|
CAIRO_FONT_SLANT_NORMAL,
|
||||||
CAIRO_FONT_WEIGHT_BOLD,
|
CAIRO_FONT_WEIGHT_BOLD,
|
||||||
"hp",
|
"hp",
|
||||||
|
@ -2911,13 +2911,13 @@ x49gp_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
|
||||||
|
|
||||||
x49gp_ui_draw_text(cr, &widget->style->black,
|
x49gp_ui_draw_text(cr, &widget->style->black,
|
||||||
X49GP_UI_NORMAL_FONT, 13.0, 0.0,
|
X49GP_UI_NORMAL_FONT, 13.0, 0.0,
|
||||||
38, 56, 1,
|
14 /* 38 */, 34 /* 56 */, 1,
|
||||||
CAIRO_FONT_SLANT_NORMAL,
|
CAIRO_FONT_SLANT_NORMAL,
|
||||||
CAIRO_FONT_WEIGHT_NORMAL,
|
CAIRO_FONT_WEIGHT_NORMAL,
|
||||||
"graphing calculator");
|
"graphing calculator");
|
||||||
|
|
||||||
x49gp_ui_draw_symbol(cr, &widget->style->black, 10.0, 0.0, TRUE,
|
x49gp_ui_draw_symbol(cr, &widget->style->black, 10.0, 0.0, TRUE,
|
||||||
138, 25, symbol_get_by_name("triangleup"));
|
114 /* 138 */, 8 /* 25 */, symbol_get_by_name("triangleup"));
|
||||||
|
|
||||||
left_color = UI_COLOR_GREEN;
|
left_color = UI_COLOR_GREEN;
|
||||||
right_color = UI_COLOR_RED;
|
right_color = UI_COLOR_RED;
|
||||||
|
@ -2932,7 +2932,7 @@ x49gp_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
|
||||||
case UI_CALCULATOR_HP50G_NEWRPL:
|
case UI_CALCULATOR_HP50G_NEWRPL:
|
||||||
x49gp_ui_draw_text(cr, &widget->style->white,
|
x49gp_ui_draw_text(cr, &widget->style->white,
|
||||||
X49GP_UI_NORMAL_FONT, 15.0, 0.0,
|
X49GP_UI_NORMAL_FONT, 15.0, 0.0,
|
||||||
38, 42, 2,
|
14 /* 38 */, 20 /* 42 */, 2,
|
||||||
CAIRO_FONT_SLANT_NORMAL,
|
CAIRO_FONT_SLANT_NORMAL,
|
||||||
CAIRO_FONT_WEIGHT_NORMAL,
|
CAIRO_FONT_WEIGHT_NORMAL,
|
||||||
"HP",
|
"HP",
|
||||||
|
@ -2942,13 +2942,13 @@ x49gp_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
|
||||||
|
|
||||||
x49gp_ui_draw_text(cr, &widget->style->white,
|
x49gp_ui_draw_text(cr, &widget->style->white,
|
||||||
X49GP_UI_NORMAL_FONT, 13.0, 0.0,
|
X49GP_UI_NORMAL_FONT, 13.0, 0.0,
|
||||||
38, 56, 1,
|
14 /* 38 */, 34 /* 56 */, 1,
|
||||||
CAIRO_FONT_SLANT_NORMAL,
|
CAIRO_FONT_SLANT_NORMAL,
|
||||||
CAIRO_FONT_WEIGHT_NORMAL,
|
CAIRO_FONT_WEIGHT_NORMAL,
|
||||||
"Graphing Calculator");
|
"Graphing Calculator");
|
||||||
|
|
||||||
x49gp_ui_draw_symbol(cr, &widget->style->white, 10.0, 0.0, TRUE,
|
x49gp_ui_draw_symbol(cr, &widget->style->white, 10.0, 0.0, TRUE,
|
||||||
168, 25, symbol_get_by_name("triangleup"));
|
134 /* 168 */, 8 /* 25 */, symbol_get_by_name("triangleup"));
|
||||||
|
|
||||||
left_color = UI_COLOR_WHITE;
|
left_color = UI_COLOR_WHITE;
|
||||||
right_color = UI_COLOR_ORANGE;
|
right_color = UI_COLOR_ORANGE;
|
||||||
|
@ -3162,7 +3162,7 @@ gui_load(x49gp_module_t *module, GKeyFile *keyfile)
|
||||||
fd = x49gp_module_open_rodata(module,
|
fd = x49gp_module_open_rodata(module,
|
||||||
ui->calculator == UI_CALCULATOR_HP49GP ||
|
ui->calculator == UI_CALCULATOR_HP49GP ||
|
||||||
ui->calculator == UI_CALCULATOR_HP49GP_NEWRPL ?
|
ui->calculator == UI_CALCULATOR_HP49GP_NEWRPL ?
|
||||||
"hp49g+.png" : "hp50g.png",
|
"hp49g+-cropped.png" : "hp50g-cropped.png",
|
||||||
&imagefile);
|
&imagefile);
|
||||||
if (fd < 0) return fd;
|
if (fd < 0) return fd;
|
||||||
|
|
||||||
|
@ -3173,10 +3173,10 @@ gui_load(x49gp_module_t *module, GKeyFile *keyfile)
|
||||||
ui->lcd_height = 80 * 2 + ui->lcd_top_margin;
|
ui->lcd_height = 80 * 2 + ui->lcd_top_margin;
|
||||||
|
|
||||||
ui->lcd_x_offset = (ui->width - ui->lcd_width) / 2;
|
ui->lcd_x_offset = (ui->width - ui->lcd_width) / 2;
|
||||||
ui->lcd_y_offset = 69;
|
ui->lcd_y_offset = 48; //69;
|
||||||
|
|
||||||
ui->kb_x_offset = 36;
|
ui->kb_x_offset = 10; //36;
|
||||||
ui->kb_y_offset = 301;
|
ui->kb_y_offset = 280; //301;
|
||||||
|
|
||||||
ui->bg_pixbuf = gdk_pixbuf_new_from_file(imagefile, &gerror);
|
ui->bg_pixbuf = gdk_pixbuf_new_from_file(imagefile, &gerror);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
@ -3187,7 +3187,7 @@ gui_load(x49gp_module_t *module, GKeyFile *keyfile)
|
||||||
gtk_widget_set(ui->window, "accept-focus", TRUE, NULL);
|
gtk_widget_set(ui->window, "accept-focus", TRUE, NULL);
|
||||||
gtk_widget_set(ui->window, "focus-on-map", TRUE, NULL);
|
gtk_widget_set(ui->window, "focus-on-map", TRUE, NULL);
|
||||||
gtk_widget_set(ui->window, "resizable", FALSE, NULL);
|
gtk_widget_set(ui->window, "resizable", FALSE, NULL);
|
||||||
gtk_window_set_decorated(GTK_WINDOW(ui->window), FALSE);
|
gtk_window_set_decorated(GTK_WINDOW(ui->window), TRUE);
|
||||||
|
|
||||||
gtk_widget_set_name(ui->window, ui->name);
|
gtk_widget_set_name(ui->window, ui->name);
|
||||||
gtk_window_set_title(GTK_WINDOW(ui->window), ui->name);
|
gtk_window_set_title(GTK_WINDOW(ui->window), ui->name);
|
||||||
|
|
Loading…
Reference in a new issue