mirror of
https://github.com/google/pebble.git
synced 2025-04-30 07:21:39 -04:00
spelling: initial
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
9ab4efb8b8
commit
42ff2a4a3e
5 changed files with 8 additions and 8 deletions
|
@ -283,12 +283,12 @@ static ALWAYS_INLINE GRect prv_menu_cell_basic_draw_custom_one_column_round(
|
|||
|
||||
const bool can_use_two_lines_for_title = !(render_subtitle || render_icon);
|
||||
const bool can_use_many_lines_for_title = (config->overflow_mode == GTextOverflowModeWordWrap);
|
||||
const int16_t intitial_title_text_lines = can_use_two_lines_for_title ? 2 : 1;
|
||||
const int16_t initial_title_text_lines = can_use_two_lines_for_title ? 2 : 1;
|
||||
int16_t title_text_frame_height = can_use_many_lines_for_title
|
||||
? graphics_text_layout_get_text_height(ctx, config->title, title_font,
|
||||
cell_layer_bounds_size.w, config->overflow_mode,
|
||||
text_alignment)
|
||||
: title_font_height * intitial_title_text_lines;
|
||||
: title_font_height * initial_title_text_lines;
|
||||
const int title_text_cap_offset = (config->title) ? fonts_get_font_cap_offset(title_font) : 0;
|
||||
|
||||
int16_t container_height = title_text_frame_height + subtitle_text_frame_height;
|
||||
|
|
|
@ -249,7 +249,7 @@ void conn_mgr_set_ble_conn_response_time_ext(
|
|||
uint16_t max_period_secs, ResponsivenessGrantedHandler granted_handler) {
|
||||
ConnectionMgrInfo *conn_mgr_info;
|
||||
if (!hdl || !((conn_mgr_info = hdl->conn_mgr_info))) {
|
||||
PBL_LOG(LOG_LEVEL_ERROR, "GAP Handle not properly intialized");
|
||||
PBL_LOG(LOG_LEVEL_ERROR, "GAP Handle not properly initialized");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ static void * prv_offset_to_address(MemorySegment *segment, size_t offset) {
|
|||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
static bool prv_intialize_sdk_process(PebbleTask task, const PebbleProcessInfo *info,
|
||||
static bool prv_initialize_sdk_process(PebbleTask task, const PebbleProcessInfo *info,
|
||||
MemorySegment *destination) {
|
||||
if (!prv_verify_checksum(info, destination->start)) {
|
||||
PBL_LOG(LOG_LEVEL_DEBUG, "Calculated CRC does not match, aborting...");
|
||||
|
@ -128,7 +128,7 @@ static bool prv_load_from_flash(const PebbleProcessMd *app_md, PebbleTask task,
|
|||
}
|
||||
pfs_close(fd);
|
||||
|
||||
return prv_intialize_sdk_process(task, &info, destination);
|
||||
return prv_initialize_sdk_process(task, &info, destination);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------------
|
||||
|
@ -156,7 +156,7 @@ static bool prv_load_from_resource(const PebbleProcessMdResource *app_md,
|
|||
destination->start, load_size) == load_size);
|
||||
|
||||
// Process the relocation entries
|
||||
return prv_intialize_sdk_process(task, &info, destination);
|
||||
return prv_initialize_sdk_process(task, &info, destination);
|
||||
}
|
||||
|
||||
void * process_loader_load(const PebbleProcessMd *app_md, PebbleTask task,
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
//! Call this as you're just entering manufacturing mode to do initalial setup.
|
||||
//! Call this as you're just entering manufacturing mode to do initial setup.
|
||||
void accessory_mfg_mode_start(void);
|
||||
|
||||
//! Called on an ISR to handle a character from the accessory connector.
|
||||
|
|
|
@ -606,7 +606,7 @@ void test_rocky_api_graphics__fill_text_aligned(void) {
|
|||
void test_rocky_api_graphics__text_align(void) {
|
||||
prv_global_init_and_set_ctx();
|
||||
|
||||
// intial value
|
||||
// initial value
|
||||
cl_assert_equal_i(GTextAlignmentLeft, s_rocky_text_state.alignment);
|
||||
|
||||
s_rocky_text_state.alignment = (GTextAlignment)-1;
|
||||
|
|
Loading…
Add table
Reference in a new issue