Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
julia 0.2
Dates
Cairo
Color 0.2.9
IniFile
Expand Down
4 changes: 3 additions & 1 deletion src/Winston.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ else
end
using IniFile
using Compat
using Dates
if VERSION.minor < 4
using Dates
end

isdefined(Base, :Libc) && (strftime = Libc.strftime)
isdefined(Base, :Dates) && (datetime2unix = Dates.datetime2unix)
Expand Down
1 change: 1 addition & 0 deletions src/geom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function shift(r::Rectangle, dx::Real, dy::Real)
end

# scale width & height, keeping center fixed
import Base.*
function (*)(r::Rectangle, s::Real)
dw = 0.5*(s - 1.)*(r.x1 - r.x0)
dh = 0.5*(s - 1.)*(r.y1 - r.y0)
Expand Down