Skip to content

Commit

Permalink
Made change to support new SDK 3
Browse files Browse the repository at this point in the history
 - (fix #4) Digits are now visible
 - Updated some ressources to use transparent PNG
  • Loading branch information
Cley Faye committed Mar 3, 2015
1 parent f72b7f3 commit 79855d1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
Binary file modified resources/images/batt_contour.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/batt_plug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/batt_textimg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bt_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/bt_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/digits/digitlayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ handle_layer_update(struct Layer* layer,
{
digit_info_t* info = get_info(layer);
GRect layer_bounds = layer_get_bounds(layer);
#ifdef PBL_COLOR
graphics_context_set_compositing_mode(ctx,
GCompOpOr);
GCompOpSet);
#else
graphics_context_set_compositing_mode(ctx,
GCompOpOr);
#endif

draw_static_digit(info,
&layer_bounds.origin,
Expand Down
7 changes: 7 additions & 0 deletions src/widgets/batterylayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ handle_layer_update(Layer* layer,
{
battery_info_t* info = get_info(layer);

#ifdef PBL_COLOR
graphics_context_set_compositing_mode(ctx,
GCompOpSet);
#else
graphics_context_set_compositing_mode(ctx,
GCompOpOr);
#endif
if (cfg_get_battery_style() == BATTERY_STYLE_STATE) {
// Display progress icons
graphics_draw_bitmap_in_rect(ctx,
Expand Down

0 comments on commit 79855d1

Please sign in to comment.