Browse Source

Tweak sizes and positioning for overlaps

master
Macoy Madson 1 year ago
parent
commit
3eadc5f2b9
  1. 7
      data/DrivingCodeWithData.cakedata
  2. 12
      src/Presentation.cake

7
data/DrivingCodeWithData.cakedata

@ -102,7 +102,8 @@ heat seeker
:body "But all special new types need a programmer.
Lots of one-off booleans: doTheSpecialIceStormThing")
(slide-data :heading "Can we take the data approach even further?")
(slide-data :heading "Can we take the data approach
even further?")
(slide-data :heading "Generic \"operation\" structure"
:is-code true
:body "struct Operation
@ -201,8 +202,8 @@ EndIf EndIf")
and feature to grow?"
:body "
How are they actually growing?")
(slide-data :heading "Am I building a complicated generic system
before knowing it is necessary?")
(slide-data :heading "Am I building a complicated generic
system before knowing it is necessary?")
(slide-data :heading "In conclusion"
:body "Doing this is not hard,
knowing when to do this, and to what extent,

12
src/Presentation.cake

@ -392,9 +392,9 @@
(var device-dpi (unsigned char) 144)
;; 1 point = 1/72". Accurate if device-dpi is properly set
(var large-font-size-points (unsigned char) 36)
(var small-font-size-points (unsigned char) 18)
(var code-font-size-points (unsigned char) 16)
(var large-font-size-points (unsigned char) 38)
(var small-font-size-points (unsigned char) 20)
(var code-font-size-points (unsigned char) 20)
(SDL_GL_SetAttribute SDL_GL_CONTEXT_MAJOR_VERSION 4)
(SDL_GL_SetAttribute SDL_GL_CONTEXT_MINOR_VERSION 6)
@ -668,17 +668,17 @@
(render-string
renderer (addr ubuntu-regular-large-font-atlas) ubuntu-regular-large-texture
(+ text-x (/ window-width 8)) (/ window-height 8)
(+ text-x (/ window-width 4.5f)) (/ window-height 8)
(path slide > heading))
(if (path slide > is-code)
(render-string
renderer (addr ubuntu-mono-font-atlas) ubuntu-mono-texture
(+ text-x (/ window-width 7)) (/ window-height 4)
(+ text-x (/ window-width 4)) (/ window-height 4)
(path slide > body))
(render-string
renderer (addr ubuntu-regular-small-font-atlas) ubuntu-regular-small-texture
(+ text-x (/ window-width 7)) (/ window-height 4)
(+ text-x (/ window-width 4)) (/ window-height 4)
(path slide > body)))
(when should-render-wizard

Loading…
Cancel
Save