lib/screen_tracker.rb in sensible-cinema-0.17.0 vs lib/screen_tracker.rb in sensible-cinema-0.18.0

- old
+ new

@@ -1,5 +1,22 @@ +=begin +Copyright 2010, Roger Pack +This file is part of Sensible Cinema. + + Sensible Cinema is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Sensible Cinema is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Sensible Cinema. If not, see <http://www.gnu.org/licenses/>. +=end require 'win32/screenshot' require 'sane' require 'yaml' require File.dirname(__FILE__)+ '/ocr' @@ -39,10 +56,10 @@ raise 'poor height or wrong window' end @digits = digits @previously_displayed_warning = false @dump_digit_count = 1 - pps 'using x',@x, 'from x', x, 'y', @y, 'from y', y,'x2',@x2,'y2',@y2,'digits', @digits if $VERBOSE + pps 'using x',@x, 'from x', x, 'y', @y, 'from y', y,'x2',@x2,'y2',@y2,'digits', @digits if $VERBOSE end def get_hwnd if @name_or_regex.to_s.downcase == 'desktop' # full screen option \ No newline at end of file