Add BLender logo in the corner

Still need to make it DPI and HiDPI and such aware.
This commit is contained in:
2018-08-03 18:01:09 +02:00
parent eca235f3df
commit cd9304cff9
2 changed files with 6 additions and 0 deletions

View File

@@ -180,6 +180,12 @@ def benchmark_draw_post_pixel(arg1, arg2):
draw_rect(bottom_x, bottom_y, bottom_w, bottom_h, bottom_color)
# Logo
# TODO(sergey): Make it DPI aware.
logo_dir = os.path.dirname(os.path.abspath(__file__))
logo_filepath = os.path.join(logo_dir, 'blender.png')
draw_image(logo_filepath, 12, (bottom_h - 24) / 2, 85, 24)
handle_draw = bpy.types.SpaceBenchmark.draw_handler_add(
benchmark_draw_post_pixel, (None, None), 'WINDOW', 'POST_PIXEL')

BIN
benchmark/space/blender.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB