openrgss 0.1.3-x86-mingw32 → 0.1.4-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/openrgss/rgss.rb +3 -3
  2. metadata +1 -1
data/lib/openrgss/rgss.rb CHANGED
@@ -158,8 +158,8 @@ module RGSS
158
158
  def msgbox(*args)
159
159
  if RUBY_PLATFORM['mingw'] or RUBY_PLATFORM['mswin']
160
160
  require 'dl'
161
- @@msgbox = DL.dlopen('user32')['MessageBoxA', 'ILSSI']
162
- msgbox.call(0, args.collect{|arg|arg.to_s}.join("\n"), title, 0)
161
+ @@messagebox ||= DL::CFunc.new(DL.dlopen('user32')['MessageBoxA'], DL::TYPE_LONG, 'MessageBox')
162
+ @@messagebox.call([0, args.collect { |arg| arg.to_s }.join("\n"), RGSS.title, 0].pack('L!ppL!').unpack('L!*'))
163
163
  else
164
164
  puts args
165
165
  end
@@ -173,7 +173,7 @@ module RGSS
173
173
  #
174
174
  # <b>(Not Implemented in OpenRGSS)</b>
175
175
  def msgbox_p(*args)
176
- msgbox args.collect{|obj|obj.inspect}.join("\n")
176
+ msgbox args.collect { |obj| obj.inspect }.join("\n")
177
177
  end
178
178
 
179
179
  module Drawable
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openrgss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: x86-mingw32
7
7
  authors: