updated frametools.cpp

Sorry guys, I think this time is the real deal. I checked dolphin's master to see if the file was up to date. It was, and I think this fixes it.