about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-04-09 19:15:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-04-09 19:15:32 -0700
commit361497b8ec5d35b39ebd9de0637b468bd30f9070 (patch)
treec49b8a54b1bebab41a8aaa981073b7021b77a3cc /app.lua
parentbef604abb8400f23bae142c305bbb80a7d7c83b4 (diff)
parenta0d72ffee2ce17fb58ca350405638111af1f4909 (diff)
downloadview.love-361497b8ec5d35b39ebd9de0637b468bd30f9070.tar.gz
Merge text.love
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/app.lua b/app.lua
index b883a75..53a133f 100644
--- a/app.lua
+++ b/app.lua
@@ -214,17 +214,6 @@ function App.width(text)
   return love.graphics.getFont():getWidth(text)
 end
 
-function App.screen.draw(obj, x,y)
-  if type(obj) == 'userdata' then
-    -- ignore most things as graphics the test harness can't handle
-  elseif obj.type == 'text' then
-    App.screen.print(obj.data, x,y)
-  else
-    print(obj.type)
-    assert(false)
-  end
-end
-
 App.clipboard = ''
 function App.getClipboardText()
   return App.clipboard
@@ -415,7 +404,6 @@ function App.disable_tests()
   App.screen.move = love.window.setPosition
   App.screen.position = love.window.getPosition
   App.screen.print = love.graphics.print
-  App.screen.draw = love.graphics.draw
   if Current_app == nil or Current_app == 'run' then
     App.open_for_reading = function(filename) return io.open(filename, 'r') end
     App.open_for_writing = function(filename) return io.open(filename, 'w') end
n172'>172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332