changed integer promotion rules; breaks bootstrapping and lots of code
This commit is contained in:
parent
36247e0947
commit
4fbba0a65a
42 changed files with 643 additions and 261 deletions
|
|
@ -16257,7 +16257,7 @@ proc COLUMN_REQUESTED_WIDTH*(column: PTreeViewColumn): int32 =
|
|||
MaxWidth = column.max_width
|
||||
else:
|
||||
MaxWidth = column.requested_width
|
||||
result = CLAMP(column.requested_width, MinWidth, MaxWidth)
|
||||
result = CLAMP(column.requested_width, MinWidth, MaxWidth).int32
|
||||
|
||||
proc DRAW_EXPANDERS*(tree_view: PTreeView): bool =
|
||||
result = (not (FLAG_SET(tree_view, TREE_VIEW_IS_LIST))) and
|
||||
|
|
|
|||
|
|
@ -878,10 +878,10 @@ proc get_tab*(tab_array: PTabArray, tab_index: gint,
|
|||
proc get_positions_in_pixels*(tab_array: PTabArray): gboolean{.cdecl,
|
||||
dynlib: lib, importc: "pango_tab_array_get_positions_in_pixels".}
|
||||
proc ASCENT*(rect: TRectangle): int32 =
|
||||
result = - int(rect.y)
|
||||
result = -rect.y
|
||||
|
||||
proc DESCENT*(rect: TRectangle): int32 =
|
||||
result = int(rect.y) + int(rect.height)
|
||||
result = (rect.y) + (rect.height)
|
||||
|
||||
proc LBEARING*(rect: TRectangle): int32 =
|
||||
result = rect.x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue