ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_GL.c
(Generate patch)

Comparing Daodan/src/daodan_gl.c (file contents):
Revision 677 by alloc, Sat Mar 2 23:46:33 2013 UTC vs.
Revision 689 by alloc, Mon Mar 4 15:52:19 2013 UTC

# Line 182 | Line 182 | int daodan_set_display_mode(short width,
182                  update_cdmode();
183                  gl_eng->DisplayMode.Width = cur_devmode.dmPelsWidth;
184                  gl_eng->DisplayMode.Height = cur_devmode.dmPelsHeight;
185 <                if (cur_devmode.dmBitsPerPel > depth)
185 >                if (cur_devmode.dmBitsPerPel > (unsigned short)depth)
186                          gl_eng->DisplayMode.Depth = cur_devmode.dmBitsPerPel;
187          }
188          else
189          {
190                  update_cdmode();
191 <                if (cur_devmode.dmBitsPerPel > depth)
191 >                if (cur_devmode.dmBitsPerPel > (unsigned short)depth)
192                          gl_eng->DisplayMode.Depth = cur_devmode.dmBitsPerPel;
193          }
194          return 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)