Fix int->float conversion warning in VS2010

git-svn-id: http://skia.googlecode.com/svn/trunk@2853 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-12-12 18:34:01 +00:00
parent 1e266f8ff2
commit 4d4f281b28

View File

@ -1618,8 +1618,8 @@ SkView::Click* SampleWindow::onFindClickHandler(SkScalar x, SkScalar y) {
bool SampleWindow::onClick(Click* click) {
if (GestureClick::IsGesture(click)) {
float x = click->fICurr.fX;
float y = click->fICurr.fY;
float x = static_cast<float>(click->fICurr.fX);
float y = static_cast<float>(click->fICurr.fY);
switch (click->fState) {
case SkView::Click::kDown_State: