commit 12191cfcd0c778b1b07e88ded4850100eb0ed6b3
parent 1ca8c575b90c0eb2bdde134127402fd2eaa948e2
Author: rexim <reximkut@gmail.com>
Date: Sun, 18 Jul 2021 15:26:51 +0700
Clean up TODOs
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -43,8 +43,11 @@ void usage(FILE *stream)
fprintf(stream, "Usage: te [FILE-PATH]\n");
}
-// TODO: Save file
-// TODO: ncurses renderer
+// TODO: Save file dialog
+// Needed when ded is ran without any file so it does not know where to save.
+// TODO: File Manager
+// Any modern Text Editor should also be a File Manager
+
// TODO: Jump forward/backward by a word
// TODO: Delete a word
// TODO: Blinking cursor
@@ -87,6 +90,7 @@ static Cursor_Renderer cr = {0};
void render_editor_into_tgb(SDL_Window *window, Tile_Glyph_Buffer *tgb, Editor *editor)
{
{
+ // TODO: Zoom
const Vec2f cursor_pos =
vec2f((float) editor->cursor_col * FONT_CHAR_WIDTH * FONT_SCALE,
(float) (-(int)editor->cursor_row) * FONT_CHAR_HEIGHT * FONT_SCALE);
@@ -211,6 +215,8 @@ int main(int argc, char **argv)
}
FT_UInt pixel_size = FREE_GLYPH_FONT_SIZE;
+ // TODO: FT_Set_Pixel_Sizes does not produce good looking results
+ // We need to use something like FT_Set_Char_Size and properly set the device resolution
error = FT_Set_Pixel_Sizes(face, 0, pixel_size);
if (error) {
fprintf(stderr, "ERROR: could not set pixel size to %u\n", pixel_size);