GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
 * shoes/native/windows.c: custom fonts are displaying under windows, 
 don't have family names read yet.
 * Rakefile: pull in the SDK includes, up the minimum version to windows 
 2k. (to support font loading.)
why (author)
Sun Oct 05 23:19:04 -0700 2008
commit  2b9810a05382dd436aa89284f610a73675482849
tree    618a28e5d6c47341c8953ff15529b0eb6abe1b1f
parent  7af37aa35d15f47c5ce3bb5ff4f09e2870666db5
...
216
217
218
219
 
220
221
222
...
229
230
231
 
232
233
234
 
235
236
237
...
216
217
218
 
219
220
221
222
...
229
230
231
232
233
 
234
235
236
237
238
0
@@ -216,7 +216,7 @@ when /win32/
0
     /Ideps\ruby\lib\ruby\1.8\i386-mswin32
0
     /Ideps\curl\include
0
     /Ideps\winhttp\include
0
- /I.
0
+ /I. /DWINVER=0x0500 /D_WIN32_WINNT=0x0500
0
     /O2 /GR /EHsc
0
   ].gsub(/\n\s*/, ' ')
0
 
0
@@ -229,9 +229,10 @@ when /win32/
0
     MSVC_CFLAGS << " /Zi"
0
     MSVC_LDFLAGS << " /DEBUG"
0
   end
0
+ MSVC_CFLAGS << " /I#{ENV['SDK_INC_PATH']}" if ENV['SDK_INC_PATH']
0
   MSVC_CFLAGS << " /I#{ENV['CRT_INC_PATH']}" if ENV['CRT_INC_PATH']
0
- MSVC_LDFLAGS << " /LIBPATH:#{ENV['CRT_LIB_PATH'][0..-2]}\i386" if ENV['CRT_LIB_PATH']
0
   MSVC_LDFLAGS << " /LIBPATH:#{ENV['SDK_LIB_PATH'][0..-2]}\i386" if ENV['SDK_LIB_PATH']
0
+ MSVC_LDFLAGS << " /LIBPATH:#{ENV['CRT_LIB_PATH'][0..-2]}\i386" if ENV['CRT_LIB_PATH']
0
 
0
   # MSVC build tasks
0
   task :build_os => [:buildenv_win32, :build_skel, "dist/#{NAME}.exe"]
...
54
55
56
57
 
58
59
60
...
54
55
56
 
57
58
59
60
0
@@ -54,7 +54,7 @@ shoes_win32_cmdvector(const char *cmdline, char ***argv)
0
   return rb_w32_cmdvector(cmdline, argv);
0
 }
0
 
0
-int
0
+VALUE
0
 shoes_load_font(const char *filename)
0
 {
0
   int fonts = AddFontResourceEx(filename, FR_PRIVATE, 0);

Comments

    No one has commented yet.