1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gmc-chargrid.c (gmc_char_grid_draw): Someone teach me how to
	subtract.  Fixed a stupid offsetting bug.
This commit is contained in:
Miguel de Icaza 1998-03-13 02:29:39 +00:00
parent 060c686981
commit c7ad193388

View File

@ -378,8 +378,8 @@ gmc_char_grid_draw (GtkWidget *widget, GdkRectangle *area)
/* Offset the area because the window does not fill thea allocation */
area->x -= widget->allocation.x + (widget->allocation.width - cgrid->char_width * cgrid->width) / 2;
area->y -= widget->allocation.y + (widget->allocation.height - cgrid->char_height * cgrid->height) / 2;
area->x -= (widget->allocation.width - cgrid->char_width * cgrid->width) / 2;
area->y -= (widget->allocation.height - cgrid->char_height * cgrid->height) / 2;
w_area.x = 0;
w_area.y = 0;