/[RomCheater]/trunk/RomCheater/Docking/FloatingRamDumperDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingRamDumperDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 164 by william, Mon May 28 07:49:48 2012 UTC revision 165 by william, Mon May 28 08:13:31 2012 UTC
# Line 75  namespace RomCheater.Docking Line 75  namespace RomCheater.Docking
75              switch (dumpSize)              switch (dumpSize)
76              {              {
77                  case DumpSize.Bytes:                  case DumpSize.Bytes:
78                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1.0 + start) - BYTE_CORRECTION_VALUE;                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1.0 + (double)start) + BYTE_CORRECTION_VALUE;
79                      txtEnd.Value = end;                      txtEnd.Value = end;
80                      break;                      break;
81                  case DumpSize.KiloBytes:                  case DumpSize.KiloBytes:
82                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000.0 + start) - BYTE_CORRECTION_VALUE;                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000.0 + (double)start) + BYTE_CORRECTION_VALUE;
83                      txtEnd.Value = end;                      txtEnd.Value = end;
84                      break;                      break;
85                  case DumpSize.MegaBytes:                  case DumpSize.MegaBytes:
86                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000000.0 + start) - BYTE_CORRECTION_VALUE;                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000000.0 + (double)start) + BYTE_CORRECTION_VALUE;
87                      txtEnd.Value = end;                      txtEnd.Value = end;
88                      break;                      break;
89                  case DumpSize.GigaBytes:                  case DumpSize.GigaBytes:
90                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000000000.0 + start) - BYTE_CORRECTION_VALUE;                      end = (ulong)(Convert.ToDouble(txtDumpSize.Text) * 1000000000.0 + (double)start) + BYTE_CORRECTION_VALUE;
91                      txtEnd.Value = end;                      txtEnd.Value = end;
92                      break;                      break;
93              }              }

Legend:
Removed from v.164  
changed lines
  Added in v.165

  ViewVC Help
Powered by ViewVC 1.1.22