Debug comments$

This commit is contained in:
Loic Guegan 2022-12-31 11:47:56 +01:00
parent 2bb6730df8
commit 144a3ddfb5
5 changed files with 39 additions and 36 deletions

View file

@ -29,9 +29,10 @@ private:
void OnPaint(wxPaintEvent &event) {
wxPaintDC current_dc(this);
dc = &current_dc;
wxSize fontsize=dc->GetTextExtent("a");
wxLogDebug("width=%d, height=%d",fontsize.x,fontsize.y);
// Just in case you want to fetch font sizes to configure comment text:
//wxSize fontsize=dc->GetTextExtent("a");
//wxLogDebug("width=%d, height=%d",fontsize.x,fontsize.y);
// Refresh canvas size
wxSize sz = GetClientSize();