Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit d608663

Browse files
femtocleaner[bot]SimonDanisch
authored andcommitted
Fix deprecations (#48)
1 parent 2298797 commit d608663

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ end
5252
Create a new rectangle with x,y == 0,0 while taking the widths from the original
5353
Rectangle
5454
"""
55-
zeroposition{T}(r::SimpleRectangle{T}) = SimpleRectangle(zero(T), zero(T), r.w, r.h)
55+
zeroposition(r::SimpleRectangle{T}) where {T} = SimpleRectangle(zero(T), zero(T), r.w, r.h)

src/events.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Selection of random objects on the screen is realized by rendering an
9595
object id + plus an arbitrary index into the framebuffer.
9696
The index can be used for e.g. instanced geometries.
9797
"""
98-
immutable SelectionID{T <: Integer} <: FieldVector{2, T}
98+
struct SelectionID{T <: Integer} <: FieldVector{2, T}
9999
id::T
100100
index::T
101101
# function SelectionID(args::NTuple{2, T})

src/screen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function abs_area(s::Screen)
552552
area
553553
end
554554

555-
function Base.push!{Pre}(screen::Screen, robj::RenderObject{Pre})
555+
function Base.push!(screen::Screen, robj::RenderObject{Pre}) where Pre
556556
# since fxaa is the default, if :fxaa not in uniforms --> needs fxaa
557557
sym = Bool(get(robj.uniforms, :fxaa, true)) ? :renderlist_fxaa : :renderlist
558558
# find renderlist specialized to current prerender function

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function postprocess(color, color_luma, framebuffer_size)
7575
(pass1, pass2, pass3)
7676
end
7777

78-
function attach_framebuffer{T}(t::Texture{T, 2}, attachment)
78+
function attach_framebuffer(t::Texture{T, 2}, attachment) where T
7979
glFramebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, t.id, 0)
8080
end
8181

0 commit comments

Comments
 (0)