Differences From Artifact [67dd855e73]:
- File
src/Cube.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 9409) [annotate] [blame] [check-ins using]
To Artifact [4173147859]:
- File src/Cube.m — part of check-in [c634a689e7] at 2025-03-29 17:13:40 on branch trunk — More style fixes (user: js, size: 9295) [annotate] [blame] [check-ins using]
︙ | |||
123 124 125 126 127 128 129 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | - + - - - + + - | _height = 1080; } } log(@"video: mode"); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); if ((_window = SDL_CreateWindow("cube engine", |
︙ | |||
240 241 242 243 244 245 246 | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | - - + + | [self quit]; break; case SDL_KEYDOWN: case SDL_KEYUP: if (_repeatsKeys || event.key.repeat == 0) keypress(event.key.keysym.sym, |
︙ | |||
301 302 303 304 305 306 307 | 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 | - + - + - - - + + - | - (void)screenshot { SDL_Surface *image; SDL_Surface *temp; if ((image = SDL_CreateRGBSurface(SDL_SWSURFACE, _width, _height, 24, |
︙ | |||
343 344 345 346 347 348 349 | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 | - + | // failure exit void fatal(OFConstantString *s, ...) { va_list args; va_start(args, s); OFMutableString *msg = [[OFMutableString alloc] initWithFormat: s |
︙ |