diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-03-29 18:21:02 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-03-29 18:21:02 +0300 |
commit | b3ef5a04d153c9b3b6af3a3c12cc62e2b99ad9e4 (patch) | |
tree | 0f933eaa68080f9ea000a195c27bbe3d00b50708 /source/blender | |
parent | 973eeff2eade2cef392ac56a08030d02620861c8 (diff) |
Cleanup: Use uppercase UI_ prefix for external functions
Using uppercase prefixes is our convention for external functions.
"External" as in functions exposed to the outside of interface/ directory.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 4 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_batch_presets.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 2a0181876c7..eba3be327dd 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1169,7 +1169,7 @@ void UI_tooltip_free(struct bContext *C, struct bScreen *sc, struct ARegion *ar) int UI_calc_float_precision(int prec, double value); /* UI Batches managment */ -void ui_widget_batch_preset_reset(void); -void ui_widget_batch_preset_exit(void); +void UI_widget_batch_preset_reset(void); +void UI_widget_batch_preset_exit(void); #endif /* __UI_INTERFACE_H__ */ diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 60feaa74c01..7c0fa271607 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -327,14 +327,14 @@ static Gwn_Batch *ui_batch_roundbox_get(void) #undef EMBOSS #undef NO_AA -void ui_widget_batch_preset_reset(void) +void UI_widget_batch_preset_reset(void) { if (g_ui_batch_cache.roundbox) { gwn_batch_vao_cache_clear(g_ui_batch_cache.roundbox); } } -void ui_widget_batch_preset_exit(void) +void UI_widget_batch_preset_exit(void) { GWN_BATCH_DISCARD_SAFE(g_ui_batch_cache.roundbox); } diff --git a/source/blender/gpu/intern/gpu_batch_presets.c b/source/blender/gpu/intern/gpu_batch_presets.c index 1eb1b737bee..144c4a33787 100644 --- a/source/blender/gpu/intern/gpu_batch_presets.c +++ b/source/blender/gpu/intern/gpu_batch_presets.c @@ -205,7 +205,7 @@ void gpu_batch_presets_reset(void) gwn_batch_vao_cache_clear(g_presets_3d.batch.sphere_wire_low); gwn_batch_vao_cache_clear(g_presets_3d.batch.sphere_wire_med); - ui_widget_batch_preset_reset(); + UI_widget_batch_preset_reset(); } void gpu_batch_presets_exit(void) @@ -216,5 +216,5 @@ void gpu_batch_presets_exit(void) GWN_batch_discard(g_presets_3d.batch.sphere_wire_low); GWN_batch_discard(g_presets_3d.batch.sphere_wire_med); - ui_widget_batch_preset_exit(); + UI_widget_batch_preset_exit(); } |