Compare commits
No commits in common. "38016be3d3fa2ee1fa2ac1b9399382979bc7625b" and "ebb4d7102bb393d5185ce318524850609d4790c8" have entirely different histories.
38016be3d3
...
ebb4d7102b
|
@ -27,9 +27,6 @@ import (
|
|||
)
|
||||
|
||||
var transition bool
|
||||
var softCutDuration float64
|
||||
var width int32
|
||||
var height int32
|
||||
|
||||
/*
|
||||
* checkStdin checks if any data has been passed in through stdin and returns
|
||||
|
@ -159,7 +156,7 @@ func milkbucket(cmd *cobra.Command, args []string) {
|
|||
}
|
||||
defer sdl.Quit()
|
||||
|
||||
m, err := newMilkDropWindow(width, height, args, softCutDuration)
|
||||
m, err := newMilkDropWindow(800, 600, args)
|
||||
if err != nil {
|
||||
cobra.CheckErr(err)
|
||||
}
|
||||
|
@ -206,7 +203,4 @@ func init() {
|
|||
// Cobra also supports local flags, which will only run
|
||||
// when this action is called directly.
|
||||
rootCmd.Flags().BoolVarP(&transition, "transition", "t", false, "smoothly transition between presets")
|
||||
rootCmd.Flags().Float64VarP(&softCutDuration, "soft-cut-duration", "s", 3, "time in seconds for a soft transition between two presets (use with --transition)")
|
||||
rootCmd.Flags().Int32Var(&width, "width", 800, "window width")
|
||||
rootCmd.Flags().Int32Var(&height, "height", 600, "window height")
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ func (m *milkDropWindow) prevPreset(smooth bool) {
|
|||
* newMilkDropWindow returns a new milkDropWindow with the given width and
|
||||
* height, and sets presets available to the window.
|
||||
*/
|
||||
func newMilkDropWindow(width, height int32, presets []string, softCutDuration float64) (*milkDropWindow, error) {
|
||||
func newMilkDropWindow(width, height int32, presets []string) (*milkDropWindow, error) {
|
||||
var m milkDropWindow
|
||||
var err error
|
||||
|
||||
|
@ -111,8 +111,6 @@ func newMilkDropWindow(width, height int32, presets []string, softCutDuration fl
|
|||
|
||||
C.projectm_set_window_size(m.handle, C.ulong(width), C.ulong(height))
|
||||
|
||||
C.projectm_set_soft_cut_duration(m.handle, C.double(softCutDuration))
|
||||
|
||||
return &m, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue