Fix GDI+ graphics error
This commit is contained in:
@ -92,7 +92,7 @@ namespace HFUTCourseSimulation {
|
||||
var rect = new RectangleF(cellx * BodyCellWidth, celly * BodyCellHeight, BodyCellWidth, celly * BodyCellHeight);
|
||||
graphics.DrawString(courses.Name, textFont, textBrush, rect);
|
||||
var thisTextMargin = graphics.MeasureString(courses.Name, textFont, BodyCellWidth).Height;
|
||||
graphics.DrawString(courses.Desc, textFont, textBrush, cellx * BodyCellWidth, celly * BodyCellHeight + textMargin);
|
||||
graphics.DrawString(courses.Desc, textFont, textBrush, cellx * BodyCellWidth, celly * BodyCellHeight + thisTextMargin);
|
||||
}
|
||||
|
||||
//reset
|
||||
|
Reference in New Issue
Block a user