mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 18:32:53 +03:00
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:
parent
060c686981
commit
c7ad193388
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user