Browse Source

Add more ideas on resizing canvas in VC_TERM_PLATFORM

rexim 2 years ago
parent
commit
6d640c8859
1 changed files with 1 additions and 0 deletions
  1. 1 0
      demos/vc.c

+ 1 - 0
demos/vc.c

@@ -473,6 +473,7 @@ static void vc_term_resize_char_canvas(size_t new_width, size_t new_height)
 {
     // TODO: can we just do something so the divisibility is not important?
     // Like round the stuff or something?
+    // Or we can resize the frame on the fly similarly to how we resize sprites in olivec_sprite_*() functions.
     assert(new_width%VC_TERM_SCALE_DOWN_FACTOR == 0 && "Width must be divisible by VC_TERM_SCALE_DOWN_FACTOR");
     assert(new_height%VC_TERM_SCALE_DOWN_FACTOR == 0 && "Height must be divisible by VC_TERM_SCALE_DOWN_FACTOR");
     vc_term_actual_width = new_width;