Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/space_clip.c
| Show First 20 Lines • Show All 828 Lines • ▼ Show 20 Lines | wmGizmoMapType *gzmap_type = WM_gizmomaptype_ensure( | ||||
| &(const struct wmGizmoMapType_Params){SPACE_CLIP, RGN_TYPE_WINDOW}); | &(const struct wmGizmoMapType_Params){SPACE_CLIP, RGN_TYPE_WINDOW}); | ||||
| WM_gizmogrouptype_append_and_link(gzmap_type, CLIP_GGT_navigate); | WM_gizmogrouptype_append_and_link(gzmap_type, CLIP_GGT_navigate); | ||||
| } | } | ||||
| /********************* main region ********************/ | /********************* main region ********************/ | ||||
| /* sets up the fields of the View2D from zoom and offset */ | /* sets up the fields of the View2D from zoom and offset */ | ||||
| static void movieclip_main_area_set_view2d(const bContext *C, ARegion *region) | void movieclip_main_area_set_view2d(const bContext *C, ARegion *region); | ||||
| void movieclip_main_area_set_view2d(const bContext *C, ARegion *region) | |||||
| { | { | ||||
| SpaceClip *sc = CTX_wm_space_clip(C); | SpaceClip *sc = CTX_wm_space_clip(C); | ||||
| float x1, y1, w, h, aspx, aspy; | float x1, y1, w, h, aspx, aspy; | ||||
| int width, height, winx, winy; | int width, height, winx, winy; | ||||
| ED_space_clip_get_size(sc, &width, &height); | ED_space_clip_get_size(sc, &width, &height); | ||||
| ED_space_clip_get_aspect(sc, &aspx, &aspy); | ED_space_clip_get_aspect(sc, &aspx, &aspy); | ||||
| ▲ Show 20 Lines • Show All 588 Lines • Show Last 20 Lines | |||||