ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingDataTypeConverter.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingDataTypeConverter.cs (file contents):
Revision 367 by william, Sat Jun 2 14:54:17 2012 UTC vs.
Revision 368 by william, Sun Jun 10 04:03:24 2012 UTC

--- trunk/RomCheater/Docking/FloatingDataTypeConverter.cs	2012/06/10 03:39:00	367
+++ trunk/RomCheater/Docking/FloatingDataTypeConverter.cs	2012/06/10 04:03:24	368
@@ -67,10 +67,14 @@ namespace RomCheater.Docking
                     case NumericInputTypes.Decimal:
                         txtDecimal.Value = txtInput.Value;
                         ConvertData(txtDecimal.Value, 10);
+                         FloatConverter.SetFloatValue(Convert.ToSingle(txtDecimal.Value));
+                            FloatConverter.CalculateHexFloat();
                         break;
                     case NumericInputTypes.Hex:
                         txtHex.Value = txtInput.Value;
                         ConvertData(txtHex.Value, 16);
+                        FloatConverter.SetFloatHexValue(Convert.ToUInt32(txtHex.Value,16));
+                        FloatConverter.CalculateFloat();
                         break;
                     //case NumericInputTypes.IEEE754HexFloat:
                     //    txtFloat.Value = txtInput.Value;
@@ -81,6 +85,7 @@ namespace RomCheater.Docking
                         ConvertData(txtOctal.Value, 8);
                         break;
                 }
+               
             }
             catch (FormatException ex)
             {